From: Daniel Martin Date: 2007-05-12T00:55:48+09:00 Subject: Re: Any JRUBY programmers out there? Problems specifying RUBYLIB with jruby. "Ronald Fischer" writes: > I guess I have now to set my RUBYLIB environment variable, so that > jruby can resolve the require statement. I tried several possible > variations of how to set RUBYLIB, but always get a "no such file to > load". Which version of jruby are you using? This is something that is supposedly fixed in 1.0RC1. (see http://jira.codehaus.org/browse/JRUBY-79 and http://dist.codehaus.org/jruby/ ) In earlier versions than that, you can add a directory by setting the java system property jruby.lib. Note that this is not an environmental variable that you set, but something you set in the java environment before you call out to jruby. (My context with jruby is in using it as a scripting engine in some larger java program; I don't use it standalone myself. For standalone ruby, I have ruby.) -- s=%q( Daniel Martin -- martin@snowplow.org puts "s=%q(#{s})",s.to_a.last ) puts "s=%q(#{s})",s.to_a.last