Java and Eclipse
Download/Installation Instructions


You may want to print these instructions before proceding. You should read each step completely before performing the action it describes. Because these products/instructions may change slightly every few months, 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 you install Eclipse.


Java

The following instructions were composed for installing Sun Java 1.6.0_16 (aka Java SE Development Kit (JDK) 6, Update 16). Note: Java is already installed as part of Mac OS X, so no further installation is necessary if you have recently purchased one of these machines. You can determine whether you have the right version by typing java -version to the unix command prompt; the response should be something like java version "1.6.0_16"

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

Downloading

  1. Click Java SE Downloads

    A page, with Java SE Downloads (in orange) will be displayed in your browser.

  2. Find the section labeled Java SE Development Kit (JDK) (probably the second section from the top). Inside it should say JDK 6 Update 16. Click its Download (in orange) button to the right. If a Security Information pop-up window appears, click Yes.

    A page, with the label Java SE Development Kit 6u16 (in orange) will be displayed in your browser.

  3. In the pull-down list labeled Platform (which should show Select...), select Windows (not Windows Intel Titanium nor Windows x64). The Language label should be followed by Multi-language. Click the checkbox labeled I agree to the Java SE Development Kit 6u16 License Agreement. Finally, click the Continue button (in orange).

    Again, if a Security Information pop-up window appears, click Yes.

    A page, with the label Download Java SE Development Kit 6u16 for Windows, Multi-language (in orange) will be displayed in your browser.

  4. Under Available Files, click the orange downward-pointing arrow or the file name (jdk-6u16-windows-i586-p.exe) to its right.

  5. In the File Download - Security Warning pop-up window, click Save.

  6. In the Save As pop-up window, select the place to save this file; the Desktop is a convenient place.

    A pop-up window will appear showing % of jdk-6u16-windows-i586-p.exe from cds-esd.sun... It should reach 100% quickly if you are using a hard-wired internet connection, more slowly if you are using wireless (my cable connection at home took about 1 minute). When it shows Download Complete, click Close.

  7. You should see the file jdk-6u16-windows-i586-p.exe in the directory you specified in step 6, appearing as a "coffee cup with steam" icon.

  8. Start the Installing instructions directly below.
If the page with the label Download Java SE Development Kit 6u16 for Windows, Multi-language (in orange, from part 3) or any Java-related windows still appear in your browser(s), you can close/terminate them.


Installing

  1. Double click the "coffee cup with steam" icon labelling the file jdk-6u16-windows-i586-p.exe.

    If you see a Open File - Security Warning window, click Run. Some windows may open and close quickly.

  2. You will see a pop-up window labeled Java(TM) SE Development Kit 6 Update 16 - License whose contents start with Sun Microsystems, Inc. Binary Code License Agreement ...

    Click the Accept> button.

  3. You will see a pop-up window labeled Java(TM) SE Development Kit 6 Update 16 - Custom Setup whose contents start with Custom Setup ...

    Click the Next> button.

    The default is to get a full installation (~300Mb), which is what you want. The full installation of the required Java files will most likely be stored on the directory C:\Program Files\Java\jdk1.6.0_16\ which appears after the label Install to: near the lower-left portion of this window.

  4. You will see a pop-up window labeled Java(TM) SE Development Kit 6 Update 16 - Progress whose contents start with Installing ...

    The installation progress is shown by "progress bars" (on various panes). Typically this process takes a few minutes.

  5. You will see a pop-up window labeled Java Setup - Destination Folder whose contents start with Destination Folder ...

    The full installation of the required Java files will most likely be stored on the directory C:\Program Files\Java\jre6\ Click the Next> button.

  6. You will see a pop-up window labeled Java Setup - Progress whose contents start with Installing Java ...

    Click the Next> button.

    The installation progress again is shown by "progress bars" (on various panes). Typically this process takes a few minutes.

  7. You will see a pop-up window labeled Java(TM) SE Development Kit 6 Update 16 - Complete.
    Click the Finish button.

If you follow these instructions, Java will be successfully installed. To try to verify installation, click Start and then Run... and then type C:\WINDOWS\system32\cmd.exe in the Run pop-up window and then click OK. In the pop-up window type java -versionand press enter; it should print in that window java version "1.6.0_16" followed by two other lines.

You should keep the "coffee cup with steam" icon labelling the file jdk-6u16-windows-i586-p-iftw.exe somewhere on your computer in case you need to reinstall Java.

You may Close or Terminate (X) any Java-related windows remaining from this process.

You may now download and install the Eclipse IDE and test it with Java.


Eclipse

The following instructions were composed for installing Eclipse 3.5.0 on Windows (this version is also called Galileo). The process for Mac/Linux should be similar.

A typical installation takes about 140 Mb of disk space (plus the 79 Mb download, which you should keep on your machine, in case you need to reinstall it).

Downloading

  1. Click Eclipse

    A page, with the labels eclipse and Eclipse Downloads, will be displayed in your browser.

  2. Under the heading Eclipse Classic 3.5.0 (162Mb) (the last major icon on the bottom), click the appropriate Operating System for your machine -I'll assume a Windows installation in these instructions.

    A page, with the labels eclipse and Eclipse downloads - mirror selection, will be displayed in your browser.

  3. After the label Download eclipse-SDK-3.5-win32.zip from: click what is next: typically [United States] followed by the name of some college or computer organization in purple (it chooses a random one each time this page is displayed to distribute the work).

  4. In the File Download pop-up window, click Save.

  5. In the Save As pop-up window, select the place to save this file; the Desktop is a convenient place.

    The file will be named eclipse-SDK-3.5-win32.zip.

    A pop-up window will appear showing % of eclipse-SDK-3.5-win32.zip from ... It should reach 100% relatively quickly if you are using a hard-wired internet connection, more slowly if you are using wireless (my cable connection at home took about 5 minutes). Don't worry about the exact time as long as the download continues to make steady progress).

    When it shows Download Complete, click Close.

  • If the page with the label Eclipse downloads - mirror selection (from part 2) or any Eclipse-related windows still appear in your browser(s), you can close/terminate them. You should keep this file (eclipse-SDK-3.5-win32.zip) somewhere on your computer in case you need to reinstall Eclipse.


    Installing

    1. Unzip this file that you just downloaded.
      On my machines, I can
      • Right-click the file.
      • Move to the WinZip command.
      • Click Extract to here

      Unzipping creates a folder named eclipse. You can leave this folder here or move it elsewhere on your disk drive. Again, I recommend putting the file and resulting folder in the C:\Program Files\ directory.

      You should know how to use your machine to zip and unzip files.

    2. Create a shortcut on your desktop to the eclipse.exe file in this eclipse folder.
      On most Windows machines, you can
      • Right-click the file eclipse.exe
      • Drag it to the desktop.
      • Release the right button.
      • Click Create shortcut here

      Now you are ready to perform a one-time only setup of Eclipse.

    3. Double-click the shortcut to Eclipse that you just created. In the Workspace Launcher window, in the box following Workspace:, should appear something like C:\Documents and Settings\username\workspace (where username is your login on the machine). If you want, you can type in (or browse) another location for the workspace file to be created, but I advise accepting the default.

      Check the box labeled Use this as the default and do not ask again.
      Aside: you will be using one workspace during the semester, checking projects in and out of this workspace. If you ever want to re-enable the display of this window, once Eclipse starts, you can

      • Select Window | Preferences.
      • Click the + in front of General or double-click General (after the +)
      • Click Startup and Shutdown
      • Check the box labeled Prompt for workspace on startup.

    4. Click OK

    5. Download (right-click and Save Target As) Course Library Jar 1 into the same folder that you are using as your workspace (or move this file into the workspace folder after downloading it elsewhere).

    6. In Eclipse, select Window | Preferences

    7. Click the + in front of Java or double-click Java (after the +)

    8. Click Installed JREs

    9. Under the Name column, double-click jdk1.6.0_16.

    10. Click the Add External Jars... button.

    11. In the Jar Selection window, navigate to your workspace folder, and double-click the file introlib.jar.

    12. In the Edit JRE window, click OK

    13. In the Installed JREs window, click OK

    14. Terminate (X) the Welcome window
      You can always get it back by selecting Help | Welcome

    15. Terminate (X) the Eclipse window.

    Note that if you install Eclipse on any platform(s), you will have to follow the directions related to introlib there too.