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

Join the Conversation

8 Comments

  1. Thanks a lot, I used on High Sierra:

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

Leave a comment

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