• Post Reply Bookmark Topic Watch Topic
  • New Topic

Classpath  RSS feed

 
seshu Palamanti
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Every one,
Can any one please tell me the real basics of what is a classpath? and what is path? what are we doing this for in the first place. would really appreciate if you can please let me know in simple terms.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12542
48
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the path variable is used by your operating system. it is a list of directories to look in when you type a command on the command line. so if you type "foo" on the command line, the OS will look in the current directory first, then each directory listed in the path until the executable is found. Then, that program is run.

the classpath variable is similar, but specific to Java and the JVM. It too is a list of directories, which the JVM uses to try and find the .class files your Java program needs to run.
 
seshu Palamanti
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks fred rosenberger for your simple answer.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!