Section E.2. Setting CLASSPATH

   

E.2 Setting CLASSPATH

CLASSPATH tells the Java Virtual Machine where to find class libraries. Use the set command to set the CLASSPATH environment variable.

The path to a .jar or .zip file ends with the file name ; the path to a .class file ends with the directory name.

Example:

  1. Open a command prompt

  2. set CLASSPATH=.;C:\java\MyClasses;C:\java\My.jar

Note that setting CLASSPATH in this manner will only sustain the variable for the current command prompt session. Closing the prompt and opening a new one resets the variable.


   
Top


Java for ColdFusion Developers
Java for ColdFusion Developers
ISBN: 0130461806
EAN: 2147483647
Year: 2005
Pages: 206
Authors: Eben Hewitt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net