path and classpath in java path and classpath in java path and classpath in java setting difference between path and classpath in java difference between set path and set classpath in java difference between classpath and path variable in java set path and classpath in java in windows path and classpath settings in java java path and classpath setting in windows setting up path and classpath in java setting path and classpath in java windows xp path and classpath setting for java what is path and classpath setting setting path and classpath in java with example path and classpath in java setting with example path and classpath in java setting with an example
Difference between
path and classpath settings ?
Path:
Path settings are works at operating system level.
When any exe file or command file or bat file etc.., are not
recognized by operating system
then we need to do path setting to the location
of that file.
If we use any class in java program which is not a part of
java API then we need to do
classpath setting to the file which contains that
class.
For Example:
To set path for
file like Java API as follows:
Set path=” C:\Program
Files\Java\jdk1.7.0\bin”;.;
Classpath:
Classpath settings works at JVM level.
Mostly we are going to set jar file or jars files in the classpath because a jar file or jars
files contains collection java classes. If we want to use oracle co-operation
given Jdbc driver software or thin driver software then we need to set
OJDBC14.jar
For Example:
Set
Classpath=”C:\Oracle\ora92\jdbc\lib\ojdbc14.jar;.;
No comments:
Post a Comment