Quick Links

Contact Information

4800 Liberty Ave
Pittsburgh, PA 15224

Open 9:30am-6pm EST
Monday-Friday

Phone: +1 (412) 682-5282

info@cometway.com
sales@cometway.com
support@cometway.com

For more information about Comet Way products and services, please visit our corporate website at

http://www.cometway.com

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 $*

[Prev] [Next]

Description: How to use the jc Unix shell script.

Updated: Mon May 19 06:26:11 EDT 2008