It's not a secret anymore!
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes CLASSPATH & PATH Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "CLASSPATH & PATH" Watch "CLASSPATH & PATH" New topic


Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Hey rancher please specify me the diffrence between PATH and CLASSPATH variable

actualuy i am setting classpath=c:\jdk1.3\bin so that i can run javac from any where but it is not working. why?

with regard
Arun kumar maalik
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2398
The bin directory of your JDK should be in your PATH, not CLASSPATH.

PATH is a list of directories the operating system searches to look for executable files.

CLASSPATH is a list of directories that the compiler and interpreter use to locate .class files.
I agree. Here's the link:
It's not a secret anymore!