Maryland in Europe Logo


How to install the Java2 Standard Development Kit

by Larry Arnoldy

To install the Java 2 Standard Development Kit (Java 2 SDK), download the SDK and documentation from the Javasoft web page and then install it  to your PC. You might also see references to a JDK in publications. The Java SDK used to be called the JDK until Java 2 was separated into a Standard Edition and an Enterprise Edition. There is also a edition for small devices such as cell phones and PDAs. We will concern ourselves only with the Standard Edition.

Step 1 - Browse to Sun's Java Internet site.
The url is http://java.sun.com . Then click on the J2SE 1.4.2 SDK link. As of this writing the current version is 1.4.2, but that will change over time. J2SE stands for Java 2 Standard Edition. That is what you want. There is also a link to a J2EE download. This is the enterprise edition. You do not want the enterprise edition, so be careful to select the J2SE version.
 
Sun's webpage

Step 2 - Select the files to download.
You need to download the Java 2 Standard Edition and the Documentation. You will also want to eventually download NetBeans. NetBeans is an integrated development environment (IDE) for Java. With it, you will be able to edit Java source code and compile and run Java applications. You can download the J2SE and NetBeans in one bundle (97 MB) or you can download the J2SE (50 MB) and NetBeans separately (39 MB). You will also need to download the Java documentation (34 MB).

Do not download the J2EE nor the JRE. The JRE is the Java Runtime Environment, and is included in the SDK.

choose downloads

Step 3 - Respond to the license pages and select a location on your hard drive for the downloads to be stored.
A file with a name similar to j2sdk-1_4_2_04-nb-3_6-bin-windows.exe or j2sdk-1_4_2_04-windows-i586-p.exe will be downloaded.

Step 4 - Return to the above page and download the J2SE Documentation.
A file with the name similar to j2sdk-1_4_2-doc.zip will be downloaded.

Step 5 - Install the J2SE.
If your download manager offers you to execute the downloaded .exe file, then do so. If not, use a file explorer to navigate to the J2SE file that you just downloaded. Execute the file using the standard file explorer command (double click on the file name or use the menu File | Open). Follow the instructions. If you use the default location for the install on Windows, the location will be a directory with the name similar to j2sdk1.4.2_04. It contains the directories bin, demo, include, jre, and lib.

Default location

Step 6 - Install the Java Documentation.
The Java documentation is a zip file. It needs to be unzipped and extracted to the correct location.  The instructions below are rather general, because how you extract the files from the zip file depends upon the zip utility that you have.
Double click on zip file
Extract
Navigate to J2SE

Docs directory

Step 7 - Create bookmarks/favorites for the Java documentation and Java API.
It is a good idea to make bookmarks or favorites as the case may be in your favorite browser for the Java documentation and the Java API. The Java API is the complete documentation to the built in classes and methods.
double click index.html files
Browser window
Browser window

Return to How-To Home

Last modified: 13 June 2004