This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android this week in the Android 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
I agree. Here's the link:
subject: questions abt classpath,path
It's not a secret anymore!