• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Diff b/w PATH & CLASSPATH

 
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is diff b/w PATH & CLASSPATH
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
PATH is what DOS uses when you type in a command to find where that application is stored.
Example, you have an app called test1 in the C:\Test folder.
If you PATH statment had the line C:\Test in it, you could type in test1 from any prompt (C:\, C:\Windows\, C:\Dos, etc.) and you program would run, otherwise you would get a "Bad Command or file name" error unless you are in the C:\Test folder.
CLASSPATH is more or less the same thing, but what it does, is tell the java untilities (java, javac, etc.) where to look for your .class files.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic