Alex R. Young





java packaging


Posted by Alex R. Young on .

java packaging


Posted by Alex R. Young on .

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:

  1. Update or install RubyGems
  2. To update RubyGems, type gem update --system
  3. Install JavaGems: gem install javagems
  4. 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
is on GitHub. This
includes the following tools:

  • javagem - install and manage gems
  • jam/jamc - unifies running Java executables