Skip to content

Instantly share code, notes, and snippets.

@HatemMahmoud
Created March 6, 2012 15:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HatemMahmoud/1986691 to your computer and use it in GitHub Desktop.
Save HatemMahmoud/1986691 to your computer and use it in GitHub Desktop.
Rjb - Ruby Java Bridge
# 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