Java for ColdFusion Developers

   

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

Категории