JavaWrapper - shell wrapper for Java applications

Fetch the software.

Sets a CLASSPATH and then runs the java interpreter on the class that the script was invoked as.

We set up CLASSPATH here so that you can avoid having a CLASSPATH in your standard environment, which is bad because then browsers such as Netscape will use local copies of classes that you're trying to debug, giving you different security restrictions, and making you very confused.

To use this just make a symlink pointing at this script, with the name of your Java class. For example, if you want to use it for a program called WebCat, in your bin or scripts directory you'd say:

ln -s JavaWrapper WebCat
Then you can run your Java program directly as WebCat.

The only other wrinkle in this script is that -D property-setting args have to come before the class name, so we have to switch them around.

Back to software.
Back to ACME Java.
Back to ACME Labs.