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
Thanks saved my time.
Thank you. I was fighting this for an hour.
Thanks a lot
In spite of doing this, I still get the error “JAVA_HOME is not set”.
What shell are you using? If you’re using csh/tcsh, you may have to use setenv instead.
Thank yoou so much..that saved a lot of time
Thanks a lot, I used on High Sierra:
# JAVA_HOME=/System/Library/Frameworks/JavaVM.framework gem install rjb