Hi JRuby users,
I am working on a software that makes use of Jruby, but I want to
instantiate objects from JRuby classes inside a Java program. This
requirement can be made through compiling JRuby class files into
native java .class files. I have downloaded the compiler2.rb script,
bitescript folder and run the compiler2.rb script to generate native
java .class files.
I used the command line mentioned in this article -->
jruby -I …/bitescript/lib/ tool/compiler2.rb MyObject MyRubyClass
It gives a load error at require statement - can not load library –
MyObject and quit. (line 461 in compiler2.rb).
I have noticed that the bundle containing Jruby-1.4.0 does not contain
the script compiler2.rb in the tool folder. So, I had to search for
and download compiler2.rb and put the file into the tool folder to
Jruby bundle. Is there something wrong. I have been struggling to
generate native java code from Jruby scripts so that I can instantiate
objects in a normal Java program.
So any advice?
To unsubscribe from this list, please visit: