Virtually all Java applications are distributed as packages, so that
the rules are pretty much the same for Java packages as for other
packages. There are just a few points to make:
Install Java packages in the $local/java directory
Every Java application needs to be run from a wrapper script in
$local/script. Usually, all the wrapper does is to set the $CLASSPATH
and call the .jar file