How do I determine what Java is using as the CLASSPATH?

Java uses the CLASSPATH to determine where it looks for various parts of the program. This should only be an issue in running as an application and in servlet emulation.

In MS Windows, open a Command prompt (DOS window) and type the command:

set

Look for CLASSPATH. If the text scrolls off the screen too quickly to read type:

set | more

In Unix or Linux, open a console window (terminal window) and type:

Printenv | grep CLASSPATH or export | grep CLASSPATH

When running as an Application, the classpath is specified by the -cp parameter.