• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Very new to this, could use some help

 
carl carman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help. This should do it.
-Carl
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It worked yes. Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic