Friday, 8 January 2016

Difference Between Path and Classpath in Java

Difference Between Path and Classpath in Java

In java programming for run any java code first you need to set path and class path, Today i will show you how to set path and classpath in java also i will show you the main difference between path and classpath in java. Get start and follow my steps.

Difference between path and classpath in Java


Path is set for use java tools in our program like for run java program use java tool and for compile java program we need javac tool. All tools in java are present in bin folder. So that you need to set path upto bin folder.

Classpath is set for use predefined java classes in our java program. All predefined java classes are present in lib folder, so you need to set path upto lib folder.

I hope these difference between path and classpath is helpful for you.

No comments:

Post a Comment