java - Ruby code to JAR -
I want to be able to compile a Ruby program for a Java Jar program. I have seen in Djerobi and have seen many examples of Java applications which might be able to evabulate Ruby code, but is there a more elegant solution, which allows to process everything in Ruby And then it compiles it directly into the JAR file? / P>
The overall goal behind it is to be able to expand the protection device called Burap Proxy, so I want to be able to use all my Ruby Penestexting scripts (obviously they are arranging them so that they ) And compile my plugins in a JR file that can be executed by the device.
If you
Thank you for your time.
JRuby you Allows class compiling files, which you can normally issue. You just have to include jruby.jar too.
Script name & gt; jrubyc & lt; Script name & gt;
This command is in the current directory with a directory of Paris. And match the package where the file resides. Then the following command
jrubyc foo / bar / test.rb
output
foo / bar / test .class
To run a file produced by the compiler, use the current cd (root directory for foo / bar / test.class above) and both -cp (class search path) parameters And the path to Jruby.jar, and execute it as you would a normal Java class named foo.bar.test:
java -cp .: / path / to / jruby.jar Foo.bar .test
Comments
Post a Comment