Require 'java' --->> LoadError: no such file to load -- java

Hi everybody,
I am begginer in ruby and for learning I am using eclipse IDE. As I said
it in subject title, when I write require ‘java’ I get error – in
`gem_original_require’: no such file to load—java (LoadError)
I tryed with command include Java but it didn’t help either. Error is
“uninitialized constant Java (NameError)”. I guess it’s because I wasn’t
able to load java earlier.
I also tryed it in fxri, but errors are the same.
I know this is probably very small problem. Thank you in advance. Maja


Most probably, you’re using not JRuby, but the standard C-Ruby. If I
remember correctly, Eclipse allows to set up the default interpreter
in the settings, and I bet that C-Ruby is set there, not JRuby.


On Thu, Oct 1, 2009 at 12:07 PM, Maja V. [email protected]

Posted via

To unsubscribe from this list, please visit:

To unsubscribe from this list, please visit:

Hi Vladimir,
your were totally right… RubyVM was set to RUBY, not JRUBY. After
setting it to JRuby it finally worked. Thank you sooooo much for helping
me. Maja

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs