Forum: JRuby JRuby and Eclipse

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
415f33edd5f49002806befe2192f9aca?d=identicon&s=25 Joel Sindler (synl)
on 2014-04-06 13:56
Hey guys, I recently tried to use JRuby with eclipse (with Dynamic
Language Toolkit) but I am a bit confused how to use JRuby with Java.
How do I organize my projects? Apparently I can't have JRuby script
files in Java Projects and vice versa. Do I need to store them in
separate projects and how can I efficiently work with both languages? I
am trying to learn how to use JRuby with Java and call methods from Java
in Ruby.

I know these are easy questions for users who work with JRuby regularly
but I am still quite new to java and completely new to Ruby, so I am
very grateful for general tips, links and advice.

Thanks for the help. :)
Ariel Valentin (Guest)
on 2014-04-06 14:08
(Received via mailing list)

Would you mind sharing the motivations behind invoking Ruby from Java as
opposed to the other way around?

With respect to project structure I feel like multi-module projects make
sense to me, but I don't use Eclipse so I don't know if that is
possible: e.g.
project -
-+ module1-jruby
-+ module2-java
project-files (makefile,build.xml,pom.xml)

Sent from my mobile device. Please excuse any errors.
415f33edd5f49002806befe2192f9aca?d=identicon&s=25 Joel Sindler (synl)
on 2014-04-06 20:16
Actually I wanted to make an UI in java and use ruby scripts from the UI
and therefore invoking ruby from java. I am not particularly shure what
I will do with that later, for now I am trying to learn to script and to
use the scripts in java. I thought about doing smaller statistical
calculations or mathematical modelling, usin fisher equations and
similar methods.

In eclipse, do I need to import the ruby folder as a library?
Apparently I can't add have a ruby module and java in the same project
and I don't know what I should do with this.
This topic is locked and can not be replied to.