简体   繁体   中英

How do you use Ruby in Java?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM