Explain the significance of Classpath environment variables.
- It is the list of directories which is used by JVM to find a class.
- It tells the JVM and other applications related with the Java tools where to find the class libraries, including user-defined class libraries.
- It is a set with 'SET' command.
-
Syntax:SET CLASSPATH=path1;path2...
- Using 'SET' command DOS prompt changes the current value of CLASSPATH.