4.26.2012

CLASSPATH

-classpath option with a SDK
Enables you to set the CLASSPATH for each individual application.


CLASSPATH environment variable
CLASSPATH available for all applications by default.

The CLASSPATH environment variable is modified with the set command. 
set CLASSPATH=path1;path2 ...
Wildcard character *
Equivalent to specifying a list of all the files in the directory with the extension .jar or .JAR. For example, the class path entry srb/* specifies all JAR files in the directory named srb.
Subdirectories are not searched


Precede the CLASSPATH with a period(.)
Causes java.lang.NoClassDefFoundError Applies only when the JAR file is in the current directory.

Note:You do not need to reboot. Bring up a new command prompt.


Ref: http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html

No comments:

Post a Comment