Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CLASSPATH & PATH  RSS feed

 
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
Boost this thread!