logo: Introductory Programming
 
Home Courses Faculty & Staff Announcements Announcements Search
 

Java and Eclipse: Download and Installation Instructions

You may want to print these instructions before proceeding. You should read each step completely before performing the action it describes. Because these products may change slightly each semester, I would appreciate it if you would let me know if you find any discrepancies between these instructions and what actually happens when you try to follow them.

IMPORTANT: Install Java first, BEFORE installing Eclipse.

[Sections in this document:   Java   |   Eclipse ]

Java

The following instructions were composed for installing Sun Java 1.5.0 aka JDK 5.0). This is not the latest version of Java, but the instructions will install the latest update of the 1.5.0 development tree. DO NOT DOWNLOAD JAVA VERSION 6!

A typical Java installation takes about 400 megabytes of disk space. The installation process reports the exact size.

Downloading Java (Windows only)

  1. Click Java SE Downloads - Previous Release - J2SE 5.0 . A page, with this title in orange, will be displayed in your browser.

  2. Find the section labeled JDK 5.0 Update 17 and click its Download button. Click Yes to the Security Window pop-up, if it appears.

  3. A page, with the orange label Java SE Development Kit 5.0u17, will be displayed in your browser. Select the appropriate platform (Windows or Windows x64). Click that you agree to the Java development Kit 5.0 License Agreement and then click the orange Continue button. Again, click Yes to the Security Window pop-up, if it appears.

  4. A page, with the orange label Java SE Development Kit 5.0u17 for Windows, Multi-language, will be displayed in your browser. Under the Optional Files header, click on the jdk-1_5_0_17-windows-i586-p-iftw.exe link for a Windows Online Installation (typical download size of ~0.24MB).

  5. Save this downloaded file somewhere on your disk drive. The exact form of this interaction will depend on the version of your operating system. Store this exe file somewhere permanent on your disk drive, so that you can reexecute it (reinstall Java) later, if necessary. This file is only about 240KB (1/4 MB).

    (Note that the above file requires that you have an active network connection while you install the JDK. To install JDK without requiring an active network connection, you can download the much larger (52.2 MB) file. Click the link labeled jdk-1_5_0_17-windows-i586-p.exe under the Required Files header.)

  6. Terminate (X) any windows remaining from this process (e.g., the Download window).

 


 

Making Sure Macintosh Systems are Running Java 1.5

    Java is normally already installed as part of Mac OS X 10.4 and 10.5, so no further installation is necessary for these machines. But you should run Software Update from the apple icon menu (top right side of the screen) to ensure that you have the most recent version.

    If Software Update does not offer Java 1.5 as an option, it means one of two things:

    • It is already upgraded.
    • Apple has not repackaged and released Java 1.5 for the older version of Mac OS you are using. If this is the case, upgrade the OS, and then run software update again to move the Java version to 1.5.

    You can check which version your system has by typing java -version at the unix command prompt:

    • Click on the Finder icon (smiley face) on the dock.
    • Press the Go menu at the top of the screen and select Utilities on the drop down menu.
    • Double click on the Terminal to bring up a terminal window.
    • In the window at the prompt type
          java -version
      
      The response should be something like

       java version "1.5.0_16"
       Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
       Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
      
      You are looking for "1.5.0_xx", where xx is the update number.

 


 

Installing Java (Windows only)

  1. Double-click the .exe file that you just downloaded, to run it.
    Click Run to the Open File - Security Warning pop-up. You will see an Windows Installer window temporarily, then a Preparing to Install window temporarily. You will then see a License Agreement window.

  2. Click the "I accept the terms..." button.

  3. Click the Next button.
    You will see a Custom Setup window for J2SE Development Kit 5.0 Update 17. The default is to get a full installation (~264Mb), which is what you want.

  4. Click the Next button.

  5. You will see an Installing window (for J2SE Development Kit 5.0 Update 17), whose progress is shown by progress bars (on various panes). Be patient: many megabytes of information is being downloaded and then used to perform the actual installation; sometimes the progress bars look like they are making no progress. button.

  6. Eventually, you will see another Custom Setup window, for J2SE Runtime Environment 5.0 Update 17. The default is to get a full installation (~131Mb), which is what you want.

  7. Click the Next button.

  8. You will see a Browser Registration window. Select whatever browser(s) you want to register for.

  9. Click the Next button.

  10. You will see another Installing window (for J2SE Runtime Environment 5.0 Update 17), whose progress is shown by progress bars (on various panes). This installation will take less time than the one for the Development Kit.

  11. Click the Finish button on the Installation Completed pop-up window.

Eclipse

The following instructions were composed for installing Eclipse 3.4 on Windows. The processes for MacOS X and Linux should be similar.

On Windows a typical installation takes about 156 MB of disk space (plus the 140 MB download, which you should keep on your machine, in case you need to reinstall it).

Downloading Eclipse

  1. Click on this link.
    A page, with the label Eclispe Downloads, will be displayed in your browser.

    Regardless of your OS, you will see a number of entries in the Ganymede Packages section.

  2. Click the Eclipse Classic 3.4 - Windows (151 MB) link near the bottom to begin the process of downloading/saving this file on your computer.

    (For MacOS, click on the Eclipse Classic 3.4.1 (150 MB) link.)

  3. Terminate (X) any windows remaining from this process.

 


 

Installing Eclipse

  1. Unzip/extract all files from this zip file that you just downloaded.
    On most Windows machines, you can
    • Right-click the file.
    • Move to the WinZip command.
    • Click Extract to here
    It creates a folder named eclipse. You can leave this folder here or move it elsewhere on your disk drive.

  2. Create a shortcut on your desktop to the eclipse.exe file within this unzipped folder.
    On most Windows machines, you can
    • Hold down the right mouse button on the file eclipse.exe
    • Drag this file to the desktop.
    • Release the right button.
    • Click Create shortcut here

    Your instructor will inform you of any additional setup steps that you may need to take if necessary.

Last modified: Mon Jan 12 01:00:11 EST 2009

Undergraduate Education School of Computer Science Carnegie Mellon Academic Calendar Lecturers ONLY