HOWTO install the rjb gem on Ubuntu and Mac OS X

Here’s how to install the Ruby Java Bridge (rjb) gem on Ubuntu Linux and Mac OS X:

Ubuntu Linux (10.10)

# aptitude install openjdk-6-jre-headless openjdk-6-jdk
# JAVA_HOME=/usr/lib/jvm/java-6-openjdk gem install rjb

Mac OS X 10.6.4

# JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home gem install rjb

Note: rjb 1.3.2 requires the Java for Mac OS X 10.6 Update 3 Developer Package. If you don’t want to download it, you can use 1.3.1:

JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home gem install rjb -v=1.3.1

7 Responses to HOWTO install the rjb gem on Ubuntu and Mac OS X

  1. Raza says:

    Thanks saved my time.

  2. Pingback: RJB en Snow Leopard - esbudellant estàndards

  3. loomer says:

    Thank you. I was fighting this for an hour.

  4. Exoria says:

    Thanks a lot

  5. Chthonic says:

    In spite of doing this, I still get the error “JAVA_HOME is not set”.

  6. paul says:

    What shell are you using? If you’re using csh/tcsh, you may have to use setenv instead.

  7. jeet says:

    Thank yoou so much..that saved a lot of time

Leave a Reply

Your email address will not be published. Required fields are marked *