Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you use Ruby in Java?

Tags:

java

ruby

jruby

With JRuby, you can make use of Java libraries in Ruby. Is there the reverse for using Ruby libraries in Java?

Specifically I want to write an Eclipse plugin and I need to use a bunch of legacy functions in this library written in Ruby.

like image 373
alexloh Avatar asked Nov 04 '22 15:11

alexloh


1 Answers

You might be looking for generating Java .class or .jar files from JRuby/Ruby

You can find the topic on the JRuby wiki: https://github.com/jruby/jruby/wiki/StandaloneJarsAndClasses

Doing that I believe you can do what you need.

like image 200
Carlos Quintanilla Avatar answered Nov 09 '22 08:11

Carlos Quintanilla