BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

JRuby Roundup: JRuby 1.4 Final Released, New Windows Native Launcher, HPricot 0.8.2

| by Werner Schuster on Nov 06, 2009. Estimated reading time: 1 minute |

JRuby 1.4.0 is now available (JRuby 1.4 download links).

InfoQ covered the changes and new features in JRuby 1.4 release candidates which were already nearly feature complete.

One addition late in the release cycle was a native launcher for JRuby on Windows. Vladimir Sizikov explains the native launchers advantages over the old .bat file based launcher:

I’ve been fixing some JRuby BAT launcher script errors recently, and it was tricky, as always: as soon as you fix one issue with the way the BAT file parses parameters, a new one pops up (and a couple of regressions on top of that). Spaces, brackets, quotes, & and ^ signs, you name it. We’ve been playing this game for years now, and every time it just gets uglier and uglier. [..]
[T]he JRuby native launcher for Windows [..] has nice Java detection, an ability to launch Java in-process (so in the Task Manager one can see jruby.exe process, not just java.exe), it handles most of JRuby command line arguments already, it allows to pass parameters to the JVM when needed (via –J switch, like we always did), and it can handle spaces and brackets in the path, etc.

Vladimir also mentions the proper way to check for the OS version Ruby runs on:

    require ‘rbconfig’
    WINDOZE = Config::CONFIG[‘host_os’] =~ /mswin|mingw/

Vladimir's blog post contains more details and the reasons why this is preferable.

Finally, Nick Sieger announces a new version of _why's Hpricot, a popular library for accessing HTML/XML. Hpricot 0.8.2 is available from Rubyforge. The new version addresses long standing issues (JRUBY-3732 explains the history) and makes Hpricot work on JRuby again.

Rate this Article

Adoption Stage
Style

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.

Tell us what you think

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

Email me replies to any of my messages in this thread
Community comments

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

Email me replies to any of my messages in this thread

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

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT