How to view current classpath in Java?



Problem Description

How to view current classpath?

Solution

Following example demonstrates how to view current classpath using echo command.

C:> echo %CLASSPATH%

Result

The above code sample will produce the following result.

.;C:\Program Files\Java\jre1.6.0_03\lib\ext\QTJava.zip
java_environment_setup.htm
Advertisements