What is the difference between classpath and path variable?

Showing Answers 1 - 2 of 2 Answers

anasthesia

  • Nov 14th, 2005
 

CLASSPATH points to all the class files in your program, whereas path contains the location of all the executibles that your program needs forsuccessful run

  Was this answer useful?  Yes

mandyjoshi

  • Nov 15th, 2005
 

Classpath: The CLASSPATH is an environment variable that tells the Java compiler javac.exe where to look for class files to import or java.exe where to find class files to interpret.

Path: The PATH is an environment variable that tells the command processor where to look for executable files, e.g. *.exe, *.com and *.bat files.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions