Ruby code to JAR

前端 未结 1 2118
北海茫月
北海茫月 2021-02-06 07:21

I\'d like to be able to compile a ruby program to a java JAR program. I\'ve looked into JRuby and seen several examples of Java applications that would be able to eval() ruby co

1条回答
  •  轮回少年
    2021-02-06 07:55

    JRuby allows you to compile to .class files, which you can jar up normally. You'll just have to include jruby.jar as well. From here:

    The typical way to run the AOT compiler is to run

    jrubyc

提交回复
热议问题