This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes questions abt classpath,path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "questions abt classpath,path" Watch "questions abt classpath,path" New topic

questions abt classpath,path

hem kumar
Ranch Hand

Joined: Sep 05, 2005
Posts: 97
why we need to set these classpath path in java? whats the difference between setting classpath and setting path in java... thank u.

.....For Every Problem There Is a Solution.....
Regards, Hem
Mark Van Tuyl
Ranch Hand

Joined: Mar 22, 2002
Posts: 60
path tells the OS where to find executable files (such as java.exe, javac.exe, javap.exe and so forth).

classpath tells the JRE where to find the .class files that it is to execute.

<a href="" target="_blank" rel="nofollow">How To Ask Smart Questions</a>
hem kumar
Ranch Hand

Joined: Sep 05, 2005
Posts: 97
Thank u mark
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
See if THIS is useful! Let me know if it's not clear and I can try to fix it up.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
It is sorta covered in the JavaRanch Style Guide.
subject: questions abt classpath,path
Similar Threads
bartender, I have got the same problem as Sri Addanki for the error of noClassDefFoun
VisualeAge and DB2: ClassNotFoundException
running java program out of workspace
mysql connector Class NotFound error
JDBC MySql Driver problem