Ads Sponsored By Google :)

Wednesday, 27 February 2013

what is|difference between set path and set classpath|settings in java|windows|xp with an example


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:

1 comment:

  1. nice piece of information, I had come to know about your internet site from my friend vinay, delhi,i have read atleast 12 posts of yours by now, and let me tell you, your website gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new post, once again hats off to you! Thanx a ton once again, Regards, Difference Between Classpath and Path

    ReplyDelete

LinkWithin