At 8:11 PM +0800 3/25/08, XiaoLiang Liu wrote: >Thanks. > >But I think $JRUBY_HOME is important when the lib directory is not under the >root directory or JRuby. I mean, when JRuby lib is not together with JRuby bin. > >I think $JRUBY_HOME specifies the parent directory of JRuby lib, or >$JRUBY_HOME/lib is the lib directory of JRuby, am I right?
In general $JRUBY_HOME isn't needed. You should look at the shell and bat scripts to see whether it is used at all if set externally. Normally when you run JRuby via the shell or bat script it will find the jruby.jar file with a relative path: ../lib/jruby.jar And JRuby will assume that ../bin (current dir) is where the jruby-based system commands and scripts are located and that the expanded path to the parent directory is where $JRUBY_HOME should be. So when you run rake in JRuby like this (the -S tells JRuby this is a system script): jruby -S rake JRuby will find the right version of rake in ../bin/rake What's your use case for why you want to split the bin/ and home/ into separate parent directories? I extensively updated this page a week ago: http://wiki.jruby.org/wiki/Getting_Started to cover the current best practices for common deployment cases. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
