As part of my code I require all of the necessary jars however they are
not
added to the System property “java.class.path”, which results in me
having
to add them explicitly:
Jars that get required from within a ruby file go to the $CLASSPATH rubyvariable, while jars added to the classpath via the command line
or the
CLASSPATH environment variable get added directly to the
java.class.pathproperty. I dont know how it all works but this should
help you out. You
could set the environment var CLASSPATH in a bash script or something
that
gets used to start your app to make it a bit more portable.