To check whether JDK got installed properly or not..open command prompt and type javac ->enter
You should get some list of options instead of an error message like javac is not an internal command.
Then you have installed your JDK properly.
Differences between PATH and CLASSPATH is: (both are environmental variables)
PATH - points to bin of your java installation (system variable to tell the OS where is your JDK installed)
CLASSPATH - can say java variable, which is used to tell locations of all jar/zip(classes) files to Compiler.
Classpath is nothing but setting up the environment for Java. Java will use to find compiled classes
eg: If we are using
JDBC Driver then we need to keep classes12.jar in classpath, If we are using sevlets future then we need to keep servlet-api.jar in classpath ..
like these so many places we use this.