Tutorial4us.com
Difference between path and classpath in Java
The main difference between path and classpath is;path is set for use java tool in your java program like
java, javac, javap. Javac are used for compile the code. and classpath are used for use predefined class in
your program for example use scanner class in your program for this you need to set classpath.
Rt.jar file contain all classes and bin folder contain all tools so we set path upto bin folder and set
classpath upto lib folder, you can see in above image.
Difference between path and classpath in java
http://www.tutorial4us.com/java/difference-between-path-and-classpath

Difference between path and classpath in java

  • 1.
    Tutorial4us.com Difference between pathand classpath in Java The main difference between path and classpath is;path is set for use java tool in your java program like java, javac, javap. Javac are used for compile the code. and classpath are used for use predefined class in your program for example use scanner class in your program for this you need to set classpath. Rt.jar file contain all classes and bin folder contain all tools so we set path upto bin folder and set classpath upto lib folder, you can see in above image. Difference between path and classpath in java http://www.tutorial4us.com/java/difference-between-path-and-classpath