Installing the SDK
First you have to get it. Visit http://java.sun.com/j2se/1.5.0/download.jsp.
Accept the license agreement and download the SDK. Make sure that as you follow the instructions below, you change the file names as necessary for the exact distribution you get.
On Windows
Just run the executable installer.
Open a command prompt. If you can type “java -version” and see something meaningful, you're good to go.
If not, read on.
On Linux
Get the RPM binary for Linux. You have to give the j2sdk* file permission to execute.
$ chmod a+x j2sdk-1_5_0-linux-i586-rpm.bin
Now execute the file.
$ ./j2sdk-1_5_0-linux-i586-rpm.bin
Agree to the license.
Change to super user:
$su root Password: ******
To install it if a previous version of ...
Get Java Garage now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.