| Author |
Very new to this, could use some help
|
carl carman
Greenhorn
Joined: Oct 04, 2009
Posts: 3
|
|
|
I am just starting with the head first java book and do not know how to establish the path in dos prompt. could someone help me.
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32836
|
|
Welcome to JavaRanch
Well done asking about PATH. If you don't have a CLASSPATH already set, you don't need a CLASSPATH. You very definitely do need a PATH however.
Here are the installation instructions for Windows.
Ignore anything about "optional" and look on this as compulsory In section 4 look where it says "set PATH permanently". The PATH entries are separated by ; semicolons and begin with the drive letter (usually C) and end with bin. The example they quote (C:\Program Files\Java\jdk1.6.0_<version>\bin) would appear as C:\Program Files\Java\jdk1.6.0_16\bin for the most recent update. This presumes you have allowed the Java installer to install Java in its default location.
Remember to open a new command prompt before the PATH becomes operational.
|
 |
carl carman
Greenhorn
Joined: Oct 04, 2009
Posts: 3
|
|
Thanks for your help. This should do it.
-Carl
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32836
|
|
You're welcome I presume it worked?No, you have not added "only necessary classes"; you have added the Java installation folder, which is unnecessary.
|
 |
carl carman
Greenhorn
Joined: Oct 04, 2009
Posts: 3
|
|
|
It worked yes. Thanks
|
 |
 |
|
|
subject: Very new to this, could use some help
|
|
|