Rjb - java vm error

hello

I’m using rjb and i get this error:
in ‘load’: can’t create Java VM (RuntimeError).

thank you!

Make sure Java is in your PATH and your JAVA_HOME environment variable
is
setup appropriately.

Dhruva S. wrote in post #979092:

Make sure Java is in your PATH and your JAVA_HOME environment variable
is
setup appropriately.

I have set JAVA_HOME but i get the same error

Hi,

I need more information about your envionment.
So, please let me know the output of,
ruby -v -e “p ENV[‘JAVA_HOME’]”
and
ruby -rrjb -d -e ‘Rjb::load’
(if you installed rjb-gem, you may place -rubygem before -rrjb )

Regard

arton wrote in post #979187:

Hi,

I need more information about your envionment.
So, please let me know the output of,
ruby -v -e “p ENV[‘JAVA_HOME’]”
and
ruby -rrjb -d -e ‘Rjb::load’
(if you installed rjb-gem, you may place -rubygem before -rrjb )

Regard

Microsoft Windows [Version 6.1.7600]
Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\Ruben>ruby -v -e “p ENV[‘JAVA_HOME’]”
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-mswin32]
“C:\Program Files\Java\jdk1.6.0_23”

C:\Users\Ruben>ruby -rrjb -d -e ‘Rjb::load’
Exception `LoadError’ at ruby:0 - no such file to load – rjb
ruby: no such file to load – rjb (LoadError)

Then please let me know the command line output of
ruby -d -rubygems -rrjb -e ‘Rjb::load’


arton [email protected]

arton wrote in post #979385:

Then please let me know the command line output of
ruby -d -rubygems -rrjb -e ‘Rjb::load’


arton [email protected]

C:\Users\Ruben>ruby -d -rubygems -rrjb -e ‘Rjb::load’
Exception `LoadError’ at C:/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1113

  • no su
    ch file to load – rubygems/defaults/operating_system
    Exception NoMethodError' at C:/Ruby/lib/ruby/1.8/rational.rb:78 - undefined met hod gcd’ for Rational(1, 2):Rational
    Exception `LoadError’ at ruby:0 - no such file to load – rjb
    ruby: no such file to load – rjb (LoadError)

I am getting the same error. I’m running on Linux, and JAVA_HOME is set
correctly, and the PATH contains the right directory from which to run
‘java’.

However, I have installed only a JRE, not a JDK. Should that be ok?

  • Keith

Sorry for late reply

It seems you didn’t install rjb in the right way, but I believe that
your first post

in ‘load’: can’t create Java VM (RuntimeError).
is truely rjb’s message.
What’s difference your first post’s environment and another posts ?


arton [email protected]