Re: [jruby-dev] Class.ForName in java

2011-02-15 Thread Timothy Chen
Thanks! That's exactly what I needed. Tim Sent from my iPhone On Feb 15, 2011, at 1:32 AM, David Calavera wrote: > Hi Tim, > > the problem is that the -J-cp option sets the classpath for the java process > rather than the jruby one. Last week I wrote a post about class loaders in > jruby th

Re: [jruby-dev] Class.ForName in java

2011-02-15 Thread David Calavera
Hi Tim, the problem is that the -J-cp option sets the classpath for the java process rather than the jruby one. Last week I wrote a post about class loaders in jruby that might help you: http://thinkincode.net/2011/02/09/jruby-class-loader-by-example.html Cheers On Tue, Feb 15, 2011 at 7:51 AM

[jruby-dev] Class.ForName in java

2011-02-14 Thread Tim Chen
Hi all, I'm currently trying to use JRuby to launch our Java application, and I'm currently just calling the command line jruby with all the dependencies passed in as classpath and launching it in a Ruby script. ex: jruby -J-cp x/.jar:xx.jar run.rb The problem is that part of our app dow