Rawr will let you package everything up into a single jar that you can double click on to launch your app. Inside your program you'll want to use the get_resource method Rawr provides to find your files inside your jar (it works outside as well). The nice thing about that is if you decide to later split out some data portion of your app into its own jar (which rawr can generate for you as well) you don't have to change anything. The Java resource lookup system is pretty good, so as long as the data jar file is loaded on your classpath (which rawr takes care of for you) it "just works". We can answer more specific questions over on #monkeybars on Freenode.
David Koontz
···
On Jun 8, 2008, at 3:08 PM, Charles Oliver Nutter wrote:
AzimuthDragon wrote:
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.
Yeah, that's the goal behind David Koontz's stuff in Monkeybars and Rawr. I'm pretty sure you can provide your own structure, but he'd probably know better. David, you out there?
Alternatively, try #monkeybars on freenode during the week.
- Charlie
As long as it knows where to find your plugins folder, that shouldn't
be a problem. You won't be able to use relative paths, of course, but
something like a C:\yourapp\plugins should be fine. (Internally,
rubyscript2exe unpacks your app into a temp directory on the fly and
then executes it)
martin
···
On Sun, Jun 8, 2008 at 12:51 AM, ProgramDragon <programdragon@live.com> wrote:
Martin,
Thanks, I had forgotten about that. Can it also load files from other
folders such as a Plugins folder? This program is supposed to be able to
have extensions added once it's completed. I am fairly new to Ruby, I've
only been working with it a few months. Sorry if I am asking stupid
questions, just trying to get advice from experts. =P
Thanks, David. I will be sure to meet up tomorrow night, I have 2 1/2 hours to submit many assignments, XD. Anyways, thanks for your time, I look forward to trying this out over the summer. 
···
--------------------------------------------------
From: "David Koontz" <david@koontzfamily.org>
Sent: Monday, June 09, 2008 2:29 PM
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Subject: Re: GUI library/framework?
On Jun 8, 2008, at 3:08 PM, Charles Oliver Nutter wrote:
AzimuthDragon wrote:
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.
Yeah, that's the goal behind David Koontz's stuff in Monkeybars and Rawr. I'm pretty sure you can provide your own structure, but he'd probably know better. David, you out there?
Alternatively, try #monkeybars on freenode during the week.
- Charlie
Rawr will let you package everything up into a single jar that you can double click on to launch your app. Inside your program you'll want to use the get_resource method Rawr provides to find your files inside your jar (it works outside as well). The nice thing about that is if you decide to later split out some data portion of your app into its own jar (which rawr can generate for you as well) you don't have to change anything. The Java resource lookup system is pretty good, so as long as the data jar file is loaded on your classpath (which rawr takes care of for you) it "just works". We can answer more specific questions over on #monkeybars on Freenode.
David Koontz