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.
http://www.tutorial4us.com/java/differen...
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.
Difference between path and classpath in Java
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.
http://www.tutorial4us.com/java/difference-between-path-and-classpath