installer or virtual appliance. The cloud images for both the Windows Azure and the Amazon cloud will be available as well.
While the primary goal of 1.7 point releases is to fill out any missing compatibility issues with Ruby 1.9.3, JRuby 1.7.5 already includes experimental Ruby 2.0 support. JRuby 1.7 defaults to 1.9 mode, but it is both Ruby 1.8 & Ruby 1.9 compatible and both versions of Ruby are bundled in a single install. JRuby 1.7.5 also allows you to start testing Ruby 2.0.0. For more details about the new features, see the JRuby Release notes.
Here is how you can use the Ruby 2.0.0 mode in your BitNami JRuby Stack installation. You can also check our quick start guide for getting started with BitNami JRuby Stack.
1. Open the BitNami JRubyStack console.On Linux and Mac OS X open a terminal and go to the installation directory.
On Windows use the entry in the Start Menu: BitNami JRubyStack —> Use BitNami JRubySTack
Once you are in the console execute:
The output you receive will include:
jruby 1.7.4 (1.9.3p392)
2. Ruby 2.0.0 mode just for this sessionIf you want to use Ruby 2.0.0 mode just for this session, but use the 1.9.3 mode as the default, just need to add the JRUBY_OPTS environment variable for this session.
On Linux and Mac OS X execute:
jruby -vwill show:
jruby 1.7.4 (2.0.0)
Notice that once you close the terminal this configuration will be lost.
3. Ruby 2.0.0 mode as default modeIf you want to set Ruby 2.0.0 mode as the default mode (so you don’t need to configure it every time) edit the environment settings for you BitNami JRubyStack by doing the following.
On Linux and Mac OS X edit the
setenv.shfile that you can find in the scripts directory of your installation by adding the line:
On Windows edit the
setenv.batfile in the scripts directory of your installation by adding the line:
Now if you open the BitNami JRuby Stack console (as explained above) and execute
jruby -vyou will see that you are working with the Ruby 2.0.0 mode.