[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Q: Packaging JRuby

G. Ralph Kuntz, MD, MS

8/4/2008 11:48:00 AM

What are the options for packaging a JRuby script? I tried the
tutorial from netbeans for making a JRuby Swing application, but it
fails to run; it gets the following error: -e:1:in `require': no such
file to load -- /scripts/main (LoadError). I realize that the tutorial
actually has a bug in it; it refers to the 'swingjruby2.scripts'
package in the text, but 'scripts' in the dialog boxes.

I would like to package JRuby scripts that I am writing to run as
utilities on remote machines that I manage. The machines have the JVM
on them, but JRuby is not installed. I would also like to be able to
send the utilities to customers. They too have the JVM, but no JRuby,
and I cannot expect them to install it (they are computer naive).

The packaging must allow the script to be in a single file (.jar
or .exe).

I have used RubyScript2Exe, but I am planning on also using Java
runtime code in my scripts (like Swing), so the packaging must apply
to JRuby.

Any ideas?

Thanks, Ralph
2 Answers

James Britt

8/4/2008 3:52:00 PM

0

G. Ralph Kuntz, MD, MS wrote:
> What are the options for packaging a JRuby script? I tried the
> tutorial from netbeans for making a JRuby Swing application, but it
> fails to run; it gets the following error: -e:1:in `require': no such
> file to load -- /scripts/main (LoadError). I realize that the tutorial
> actually has a bug in it; it refers to the 'swingjruby2.scripts'
> package in the text, but 'scripts' in the dialog boxes.
>
> I would like to package JRuby scripts that I am writing to run as
> utilities on remote machines that I manage. The machines have the JVM
> on them, but JRuby is not installed. I would also like to be able to
> send the utilities to customers. They too have the JVM, but no JRuby,
> and I cannot expect them to install it (they are computer naive).


Take a look at rawr. It's intended to make it snake-simple to package
up JRuby apps as .exe, .app, or as an executable jar.

http://rubyforge.org/proj...


for the gem.


Actual source code is hosted on gitorious:

http://gitorious.org/pro...



--
James Britt

www.happycamperstudios.com - Wicked Cool Coding
www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff

G. Ralph Kuntz, MD, MS

8/5/2008 11:06:00 AM

0

Thanks. I'll take a look.