Is that so? Sounds cool. So I would be able to package my entire program
into a jar, .app or executable? I'm still not quite sure how to get it to
load things from outside the executable though, because the program isn't
installed into C:\Program Files. Most often it's extracted into a folder on
the user's desktop, so it needs to be able to generate a filepath. I have
been using Dir.getwd to generate a filepath to my main file, and then an
argument passed to the filepath method adds folder names onto the end, lol.
Would that still work, do you think? Here is my basic structure for the
program's directory, say it's in a folder called Ecko (doh). It would look
like this, if you outlined it.
/Ecko
Main.rbw
/System
config.rb
/Core
connection.class.rb
parse.class.rb
users.class.rb
extensions.class.rb
/Extensions
/Logs
/Images
/Screenshots
/Splash
/Data
/Docs
index.html
Basic layout, but that's what it would have to be able to go into if it was
an executable. Lol, I must sound like an idiot. xP
--------------------------------------------------
From: "Charles Oliver Nutter" <charles.nutter / sun.com>
Sent: Sunday, June 08, 2008 10:07 AM
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Subject: Re: GUI library/framework?
> ProgramDragon wrote:
>> I think someone already asked this, but I want to confirm:
>>
>> I am trying to write a program with a GUI, but I don't know what GUI
>> framework is the best.
>>
>> I have heard that JRuby is a good option, but also heard that Swing
>> was a bad idea to use with JRuby.
>
> Not at all, Swing is a great idea. In fact, I'd go so far as to say Swing
> is a lot better idea from JRuby than from Java.
>
>> I want to be able to write this program so that the end user can
>> install ruby, then run the program and it will start with no other
>> installation needed (like installing gems, etc, however I can do the gems
>> in the program on first run if it comes down to it).
>
> Monkeybars + Rawr can package up an application with all requirements into
> a single executable .jar, .app, or .exe...awesome stuff.
>
> - Charlie
>
>