[rjb-users] Rjb on Rails: Can't Create Java VM

rjb-users at rubyforge.org rjb-users at rubyforge.org
Mon Oct 22 18:08:55 EDT 2007


Hi,
I am having trouble getting Rjb to work within my rails app. I copied a
script that works fine in irb to a rails controller.

I put this in my environment.rb (consistent with what is defined in my
bash environment) as is advised in http://rjb.rubyforge.org/:

JAVA_HOME = '/usr/lib/j2sdk1.5-sun'
LD_LIBRARY_PATH
='/usr/lib/j2sdk1.5-sun:/usr/lib/j2sdk1.5-sun/jre/lib/i386:/usr/lib/j2sdk1.5-sun/jre/lib/i386/client'
CLASSPATH='/opt/cf/lib/saxon8.jar'

Error I receive is:
RuntimeError: can't create Java VM

I'm on rails 1.2.3, ruby 1.8.6

Is there any way to get more info from the debug output? Any ideas why
this isn't working?

Thanks for any advice,

-- 
Danny Armstrong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rjb-users/attachments/20071022/5d599f2f/attachment.html 


More information about the rjb-users mailing list