Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CLASSPATH & PATH

 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic