JavaGems

JavaGems is a JVM packaging system based on Gemcutter. It’s a user-friendly way of distributing and building Java libraries and binaries. It uses RubyGems and works the same way.
One reason this is useful to JavaScript developers is because the JavaGems authors have added a Rhino package. This was automatically imported from maven build scripts, which means it won’t currently run just by typing js.
However, if you’d like to try it anyway, follow these steps:
- Update or install RubyGems
- To update RubyGems, type
gem update --system - Install JavaGems:
gem install javagems - Install Rhino:
javagem install js
You can run Rhino with jam:
echo "gem 'js'" > Gemfile
jam org.mozilla.javascript.tools.shell.Main
One of the JavaGems authors said the package will be modified to run out of the box in the near future.
The source for the JavaGems gem is on GitHub. This includes the following tools:
javagem– install and manage gemsjam/jamc– unifies running Java executables



