I just completed a new Netbeans JRuby tutorial. This tutorial will show you how you can easily package up your Ruby application into a single Jar file.
 

Check out the tutorial here,  Swing with JRuby part II: Packing JRuby Desktop Application

 

This tutorial focuses on how to package existing Ruby application. If you are looking for tutorial on how you can create JRuby desktop application from scratch, you may find the tutorial I had created earlier helpful:

 Swing with JRuby: Developing Desktop Application with JRuby and Java Swing API

 

Comments:

Hello, nice tutorial. I have get it working inside a netbeans. When I start the jar file in the console with the command:
java -jar SwingJRuby2.jar. I get an error that main.rb is not found.
Do I have missed something here? I am not a java expert.

The code for Main.java is not compile clean on my machine. "Package" is changed in "package" and I have removed two !! in line org.jruby.Main.main... . Could you upload a working project file?

Thank you,

Posted by Igor on December 31, 2007 at 08:09 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by teera