jc
This shell script is used to compile .java files, putting the .class files into a separate classes directory. You can use the jc command to compile Java source from any directory.
This shell script uses the ~/classes directory as the target for compiled classes.
Imported JAR archives can be expanded into the classes directory keeping the CLASSPATH short and simple. The location of your Java source code relative to your CLASSPATH becomes a non-issue, making it easier to organize and integrate source code from various projects without moving any files.
The jc command uses the syntax: jc <file> ...
The jc shell script looks like this:
#! /bin/sh
echo Compiling...
ls $*
CLASSPATH=/Users/mario/classes:/Users/mario/ak/ak.jar
javac -classpath ${CLASSPATH} -d /Users/mario/classes $*
Description: How to use the jc Unix shell script.
Updated: Mon May 19 06:26:11 EDT 2008