Facilitating the spread of knowledge and innovation in professional software development



Choose your language

InfoQ Homepage News Article: Deploying JRuby Applications with Java Web Start

Article: Deploying JRuby Applications with Java Web Start

Getting applications to users, if possible in one piece, is a difficult topic, so reducing the necessary effort is a good idea. Java offers a solution for deployment with Java Web Start. The end user needs a JRE on the system, but otherwise just needs to click on a special link, which will get handled by Java Web Start, and it handles all the rest. JRuby, since it's based on the JVM, can make use of Java Web start to deploy applications too.

Mirko Stocker, known for being on the team who implemented the first Ruby refactoring tools for Eclipse, walks us through developing a small JRuby GUI application, an Obect Browser, and building the necessary Java Web Start configuration. The article shows the necessary steps such as signing the Jar files or how to setting JRuby properies with Java Web Start.

As a bonus, Mirko looks at the new Ahead Of Time (AOT) compiler in JRuby 1.1. This allows to compile Ruby code to Java bytecode at build time. With this, it's possible to ensure certain pieces of the Ruby code are compiled to bytecode, instead of hoping that the Just In Time (JIT) compiler will pick it up and compile it (the article also explains some other issues that the AOT helps resolve).

Read Mirko Stocker's Deploying JRuby Applications with Java Web Start.
We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • DEMO?

    by Raphaël Valyi,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Guys, how the hell can you speak about a hello world webstart deployement without submiting a webstart demo? I means really, you've done the required work, now it's just about hosting it on any trash server so why don't you do it? I like webstart on the RIA potential of applets, but it's just that I really can't understand that way guys are trying to sell webstart or JavaFX.

  • Re: DEMO?

    by Werner Schuster,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    1.) If you need to be convinced of the benefits of Webstart:
    2.) To play with this sample app, download the provided code (be sure to update the jar paths in the jnlp file to fit your system).

    This article is not trying to "sell" Web Start - it's showing how to use it with JRuby. Selling Web Start is Sun's business.

  • Error?

    by Jay Chung,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Hi there, I did exactly take same steps as you did even with your example, I got this error "java.lang.NoClassDefFoundError: ruby/rob (wrong name: rob)"

    Is there anything I am missing?

    By the way, your example is working fine without re-compiling.


Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.