cp jruby/lib/jruby.jar myapp.jar # adjust path to jruby.jar echo "puts 'hello'" >> jar-bootstrap.rb jar ufe myapp.jar org.jruby.JarBootstrapMain jar-bootstrap.rb java -jar myapp.jar
output was as expected 'hello'. Perhaps I could harness this for JRubyArt app export?
Here is what my myapp.jar MANIFEST.MF looks like:-
Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Built-By: tux Created-By: Apache Maven 3.3.3 Build-Jdk: 1.8.0_45 Main-Class: org.jruby.JarBootstrapMain
Apparently you can also embed additional .rb files into the jar, and the root of the jar file will be used as an implicit LOAD_PATH entry. Warbler is another option to consider.