Packages and the CLASSPATH
CLASSPATH is a environmental variable that holds directory paths to java classes.
To execute a class file that belongs to a package,
- a. Put the class file in an appropriate directory,
- i.e. if package cm.cmd.tool; then ../cm/cmd/tool/
- b. make sure that CLASSPATH knows the path to the classes in need,
- i.e. if package cm.cmd.tool; then ../cm/cmd/tool/