• Post Reply Bookmark Topic Watch Topic
  • New Topic

Updating PATH variable (was "qstn")  RSS feed

 
Brian Dangarembwa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I should have started a while back but some other commitments meant i had to putthis aside for a while but iam back and have hit a snag already i bought the head first java and on set up it says once i have unzipped the sdk i need to make any entry to my PATH enviroment so that when i type%javac at the command line the terminal will know where to find the compiler .I have follwed the instruction and for some reason i cant get to do whats been said HELP


Edit by mw: Added more meaningful subject line (original was "qstn").
[ May 08, 2008: Message edited by: marc weber ]
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please choose a more understandable title for your thread.
Difficult to understand your post, but you appear to be having difficulties installing Java in the first place.

You don't type %javac you type javac. Try javac -version and see whether you get anything sensible at the command line. 1.5.0_08 is sensible, "javac is not recognised" is disastrous.

Have a look at this page about common problems from the Java Tutorial. Make sure to set your PATH otherwise it won't work.
 
Brian Dangarembwa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you i will remeber to do so in the future as regard to question title.
Yes i ahve been having problems installing java but will try what you said and see how it goes
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be careful to record where you put the Java installation. On Windows you get an installer window which tells you where it is going to put the installation.

The PATH entry ends with bin. Find the path to the java executable file which might be C:\Program Files\Java\jdk1.6.0_06\bin\java.exe, so you add C:\Program Files\Java\jdk1.6.0_06\bin to the PATH. More details here: see No 4. Note that you have to close and reopen your command prompt window before it works.

[edit]You can download Java free of charge here.[/edit]
[ May 08, 2008: Message edited by: Campbell Ritchie ]
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More details about path on a more recent post; read the 6th post on this thread.
[ May 09, 2008: Message edited by: Campbell Ritchie ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!