Installing Java on your home computer

Windows 7 and 8

 Download the latest Java JDK:

  1. Go to  http://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. Near the top middle of the page, you should see "Java SE Downloads", click on the "DOWNLOAD" Icon above the phrase "Java Platform (JDK) 8u40  (8u40 is the current release;  if you see something newer, get it).  You do NOT need NetBeans.
  3.  Above the list of downloads, you will see a button to "Accept License Agreement".  Please read the agreement, and if you wish to continue, click to Accept the agreement.
  4. Select the correct version of java for your operating system.  If you have a 64 bit version of Windows 7 or 8, select:  Windows x64.  If you, have a 32 bit version, select Windows x86.  If you are unsure, the following link will help:  http://windows.microsoft.com/en-us/windows7/find-out-32-or-64-bit
  5. Once you have downloaded the installer, run it like all other windows installers; select all default settings.  Take note of where Java is being installed;  you need that for the next section.

Put the java jdk in your dos command path:

  1. Right click on the "My Computer" icon on your desktop or in the "Start Menu" and choose "Properties".
  2. Click on "Advanced system settings" on the left "Tasks" bar.
  3. Under the "Advanced" tab click the "Environment Variables" buttons.
  4. Look in the System Variables section and find the Path Variable.
  5. In the previous section, you either installed java in c:\Program Files\Java\jdk1.8.0_40 or c:\Program Files (x86)\Java\jdk1.8.0_40    - This is determined by your version of windows.
  6. Click edit, and look for "c:\Program Files\Java\bin". If it is there, change it to be path to where your machine installed java.  If it is not there, then add ";c:\Program Files\Java\jdk1.8.0_40\bin"  or ";c:\Program Files (x86)\Java\jdk1.8.0_40\bin".  Note: Yes, you need to add the ";" before "c:".

To test your installation:

  1. Open a command prompt by clicking on "Run" in the "Start Menu".
  2. Type in the command "cmd", and press "Ok". This should open a new window.
  3. In the new window, type "javac -version", then press return; you should see your current version at the top of the listing.

Mac OSX (10.8 and newer)

 Download the latest Java JDK:

  1. Go to  http://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. Near the top middle of the page, you should see "Java SE Downloads", click on the "DOWNLOAD" Icon above the phrase "Java Platform (JDK) 8u40  (8u40 is the current release;  if you see something newer, get it).  You do NOT need NetBeans.
  3.  Above the list of downloads, you will see a button to "Accept License Agreement".  Please read the agreement, and if you wish to continue, click to Accept the agreement.
  4. From the line that lists "Mac OSX x64", select and download "jdk-8u40-macosx-x64.dmg"
  5. Double click the dmg file, and install it on your mac just like any other installer.

To test:

  1. Open a Terminal.app from /Applications/Utilities
  2. enter the command "java -version"
  3. you should see java version 1.8.0_40 (or newer)

 


Problems?

If you are having trouble installing java on your home computer, please contact Mike Tie;  his extension is x4067, and his office is CMC305.