O'Reilly logo

Java Garage by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required