Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

classpath?  RSS feed

 
colton peterson
Ranch Hand
Posts: 97
Linux Python VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly is a classpath? I have no idea and I think it might be something important. Is it the place where java and javac are held or the dirctory where your class files are.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it's a list of places that the compiler or JRE should look for classes. Each place might be a folder, a JAR or ZIP file, a URL, etc. See Sun's Setting the Class Path for more details.
 
colton peterson
Ranch Hand
Posts: 97
Linux Python VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by colton peterson:
...Is it the place where java and javac are held...

Telling the system where to find java and javac is what the PATH variable does. It's important to realize that PATH is a different variable than CLASSPATH (which Stan explained above).
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!