These are steps showing how to package bio and jruby-openssl in jruby-complete-1.6.7.jar, becoming biojruby.jar (just for my purpose I need bioruby to develop bioinformatics programs)
Here are the steps:
Make sure you go to the directory containing jruby-complete-1.6.7.jar in the terminal / console
In the terminal / console, enter:
mkdir biojruby
Just add any gems you want, for gems that are written exclusively in ruby โโwithout the C extension will work in Jruby!
java -jar jruby-complete-1.6.7.jar -S gem install -i ./biojruby bio java -jar jruby-complete-1.6.7.jar -S gem install -i ./biojruby jruby-openssl jar uf jruby-complete-1.6.7.jar -C biojruby . mv jruby-complete-1.6.7.jar biojruby.jar
Now you can delete the biojruby folder
- Done!
Now enter:
java -jar biojruby.jar -S gem list
and you will see (indicate success):
**** LOCAL GEMS *** bio (1.4.2) bouncy-castle-java (1.5.0146.1) jruby-openssl (0.7.6.1) rake (0.8.7) sources (0.0.1)*
Now you can test your ruby โโscript by type in:
java -jar biojruby.jar #Your_Ruby_Script.rb#
source share