I’ve been learning Ruby and if I understand correctly, I can get my Ruby scripts, and use JRuby to create Java class files, essentially allowing my Ruby scripts to be run in the JVM. I have successfully managed to create a .class file from my Ruby script.
I would like to know, is it possible to make this class file into an executable file? Am I supposed to use Warble or Rawr to do this? I installed the Warble GEM but I couldn’t work out how to use it and I’m not sure if it’s even what I need… What’s the easiest way?
Type this in the command line:
Where
manifest.mfis something likeChange C:/Users/Someone/Path/To/Class/ to the path to your files and change
Footo the name of your class. This will create a jar file called “executable.jar.”