• Post Reply Bookmark Topic Watch Topic
  • New Topic

Installation of the jdk 6.0  RSS feed

 
Simon Evans
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Programmers,

As it was recommended that I (or anyone reading Head First Java) ought get the jdk5.0 (or jdk 6.0 as that is the most current)
I downloaded a version (jdk 6.0) to my hard-drive. However I was wondering what steps ought be taken to install it.

I understand that you ought set up on the conole a class path to the javac.exe file in the bin directory, but upon executing a 'search' the machine returns that there aren't any such files.

I have looked for such information in the Sun java site, and the net in general, but can't find much thus far, so I am writing to you to ask.

I would be glad if anyone of you could inform me of
what steps to take to install the jdk 6.0 now that it is downloaded.

Thank you for your assistance.

Yours

Simon Evans
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Find the Java Tutorial, then the getting started trail, then look through the common problems bit. The common problems bit tells you a bit about the PATH, and a link to how to set it permanently. If you are on Windows the PATH bit you want probably starts with C: and on *nix it starts with /. On both OSs it ends with bin. You need to spell it exactly right including all the bits about 1.6.0_05.
Typical Windows PATHs are C:\Program Files\Java\jdk1.6.0_05\bin and on *nix it is more variable, depending where you installed your JDK.

On Linux you can set up the PATH for the lifetime of a terminal window by writing

export PATH=/usr/java/jdk1.6.0_05/bin/:$PATH

Good luck with it.
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that you ought set up on the conole a class path to the javac.exe file in the bin directory, but upon executing a 'search' the machine returns that there aren't any such files.


Sounds as though you've only installed the JRE instead of the full JDK.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!