This is an example of building an executable jar with rawr.
jgem install rawr --source http://gems.neurogami.com## Generate
rawr install
## build the jar
rake rawr:jar
## Try rake -T to see other possiblities, like rake rawr:bundle:exe
## Test
java -jar package/jar/propane-example.jarCreate an archive to distribute it:
tar -cvf propane-example.tar package/jar
zip -r propane-example.zip package/windows Rawr can create jar files from JRuby application. In this code, we have one dependency: propane for our example.
You can read more about propane on github and their website.
You can read more about Rawr on github and and their website and blog.
Create another branch with warbler, following this example: http://ericlondon.com/2013/10/04/ahead-of-time-compiling-jruby-packaging-a-java-jar-creating-a-gemspec-using-warbler.html