rjb - java vm error

R

Ruben Herman

hello

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

thank you!
 
D

Dhruva Sagar

[Note: parts of this message were removed to make it a legal post.]

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

Ruben Herman

Dhruva Sagar 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
 
R

Ruben Herman

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 (c) 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)
 
A

arton

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

Ruben Herman

arton wrote in post #979385:
Then please let me know the command line output of
ruby -d -rubygems -rrjb -e 'Rjb::load'

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)
 
A

arton

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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,139
Messages
2,570,807
Members
47,356
Latest member
Tommyhotly

Latest Threads

Top