This is almost certainly something I’m doing wrong, but I find myself
to successfully modify the Java Classpath from JRuby code. The context
‘rake’, in which I want to add some things to the Java classpath, then
some JRuby unit tests which require these.
Apparently, by Google-fu is weak. On the basis of things I did find,
- Modifying the global $CLASSPATH
- Adding to “$:” (I found a page describing the unification of the Ruby
- Modifying ENV[‘CLASSPATH’]
… all to no avail. I have also read that I can ‘require foo.jar’ to
jar file, but in this case it’s a directory of classfiles I’d like to
Can anyone point me to something that should work?