简体   繁体   中英

Calling Ruby --> JRuby --> Java libraries

I have installed all 3 of Ruby, JRuby, and Java on my machine. The problem is that they are all living kind of separately :)

How can I, in the same application, have Ruby invoke JRuby so that it calls the Java code and gets back some values?

Currently I am developing Ruby and deploying it to the default localhost:3000 but to call the Java classes, I probably need to consolidate all this into a Tomcat .war file. In turn, the Java code is built and deployed using an ant script.

What is the best way for me to go about consolidating all that into one application?

最简单的方法是将所有内容移至JRuby,并与warbler打包。

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