Windows 7, 8, and 10
Download the latest Java JDK:
- Go to https://adoptopenjdk.net/ and select OpenJDK 11 (LTS).
- Click the “Install JDK Installer” button. This will download an installer.
- Double click the installer, and select the defaults for all choices to install the java JDK.
To test your installation:
- Open a command prompt by clicking on “Run” in the “Start Menu”.
- Type in the command “cmd”, and press “Ok”. This should open a new window.
- 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.:
- Go to https://adoptopenjdk.net/ and select OpenJDK 11 (LTS) and HotSpot.
- Click on the download link which should say “Latest release (jdk-11.0.4+11)”.
- 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.
- Open a Terminal.app from /Applications/Utilities
- Enter the command ‘java -version’
- You should see “openjdk 11.0.4 2019-07-16.”
- Enter the command “javac -version”
- 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 codenvy.io. Unfortunately, codenvy.io 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 codenvy.io 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.