Created
March 6, 2012 15:00
-
-
Save HatemMahmoud/1986691 to your computer and use it in GitHub Desktop.
Rjb - Ruby Java Bridge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reference: http://www.ibm.com/developerworks/java/tutorials/j-rjb/j-rjb-pdf.pdf | |
$ java -version | |
$ apt-cache search jdk | |
$ apt-get install sun-java6-jdk | |
$ export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.26/" | |
$ export PATH=$PATH:$JAVA_HOME/bin | |
$ gem install rjb | |
$ irb | |
irb(main):001:0> require 'rjb' | |
=> true | |
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/i386 | |
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/i386/client |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment