Difference between path and classpath in java

HiteshKumar71 412 views 1 slides Sep 16, 2015
Slide 1
Slide 1 of 1
Slide 1
1

About This Presentation

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...


Slide Content

www.tutorial4us.com

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