Hello,
suppose you have a Rails project and you can start it with
# jruby -S glassfish
Then, consider starting it with
# CLASSPATH="$CLASSPATH:$(find /usr/share/jruby/lib/ruby/gems/1.8/gems/glassfish-0.9.5-universal-java/modules -iname
"*.jar" -printf "%p:")" jruby -S glassfish
instead where "/usr/share/jruby/lib/ruby/gems/1.8/gems/glassfish-0.9.5-universal-java" is the path the glassfish
gem is installed.
In the former case, glassfish starts successfully.
In the latter case, glassfish fails to start (e.g. the process exits after some seconds), with no apparent reason why
glassfish fails to start.
The only difference is that the JavaVM has access to all possible .class files right from the start. Can this make a
difference? Maybe. But it should not make a difference. (Should it?)
|