Re: [jruby-user] Using JRuby in eclipse

christian <[email protected]> Tue, 23 Dec 2014 10:31:48 +0100
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CAMV7UWHBtBu2J3tNOBuh1QRQO1D_3Dv9jZGc+UbJFfhS7m3mvg@mail.gmail.com>
you are running your script with MRI and not JRuby so require 'java' does
not work.

On Tue, Dec 23, 2014 at 8:41 AM, Noam Weisberg <[email protected]> wrote:

> I'm a Java programmer trying for the first time to use JRuby with
> eclipse.
>
>
> I downloaded the .exe file of the latest JRuby, and Java DLTK - Ruby
> Development Tools. I installed both of them.
> Than I set Ruby's interpreter in eclipse to jruby.bat, and the engine
> debugger to be Ruby Built-In Debugger.
>
>
> I wrote a simple Ruby code which compiled neatly and afterwards added:
> require 'java'
>
>
> I get an error message:
>
> C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
> `require': cannot load such file -- java (LoadError)
>   from
> C:/Ruby21-x64/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
> `require'
>   from C:/Users/eternalStudent/workspace/LetsTryRuby/HelloWorld.rb:1:in
> `<main>'
>
> --
> Posted via http://www.ruby-forum.com/.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>