Windows 7, 8, and 10

 Download the latest Java JDK:

  1. Go to and select OpenJDK 11 (LTS).
  2. Click the “Install JDK Installer” button. This will download an installer.
  3. Double click the installer, and select the defaults for all choices to install the java JDK.

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 “java -version”, then press return; you should see ‘openjdk version “11.0.4” 2019-07-16’.

Mac OSX (10.8 and newer)

Download the latest Java JDK.:

  1. Go to and select OpenJDK 11 (LTS) and HotSpot.
  2. Click on the download link which should say “Latest release (jdk-11.0.4+11)”.
  3. Open the Finder program. In your Downloads folder, double-click on the file you just downloaded. This will open a standard OSX installer; select the default choices for all the questions.

To test:

  1. Open a from /Applications/Utilities
  2. Enter the command ‘java -version’
  3. You should see “openjdk 11.0.4 2019-07-16.”
  4. Enter the command “javac -version”
  5. You should see ‘javac 11.0.4’

If you are on a Chromebook or a Tablet, then you can not install Java directly on your machine, but you could use a web based environment such as Unfortunately, doesn’t let you do run any graphical programs; if you need to use use the swing library, then you will still need do your coding the the lab for that assignment. We have documented how to use on the Carleton Wiki. You will need to log into the wiki to see that documentation.

Java programs will be graded on lab computers. To prevent errors, it is good practice to test programs you write on a lab computer before turning them in.


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