Java Installation Help

A lot of our curriculum is based on the Java programming language. As such, you may find it helpful to have it installed on your personal computer. The following is a set of instructions to aid you installing Java.


JDK - Java SE Development Kit
JRE - Java SE Runtime Environment

Downloading Java

Computer Science uses a combination of Java and JavaFX in our courses. The easiest way of getting both products installed is by using JDK version 8. Below are some links to Java 8u241 for Linux, MacOS, and Windows.


  • Linux x64 - RPM (RedHat / CentOS) | TAR (Stand Alone)
  • MacOS x64 - DMG
  • Windows x64 - EXE

Linux Installation

For RedHat builds of Linux, such as Fedora and CentOS, simply download the RPM and use yum localinstall to install the package. All of the envrionment variables should be automatically configured for you.

For all other versions of Linux, download the Stand Alone version and extract the .tar.gz to a folder, /usr/lib for example. The rest of the Java folder structure is stored within the tar file. From there you will want to setup a couple of environment variables. For example:

export JAVA_HOME=/usr/lib/jvm/jre1.8.0_241
export PATH=$JAVA_HOME/bin:$PATH
export CLASS_PATH=.

Now skip to the Verify Java Installation step.

MacOS Installation

To install Java 8u241 on MacOS, start by downloading the DMG file. Once the download is completed, simply run the DMG (by double clicking on it) and follow the installer's instructions. Once install is complete, you may delete the installation file.

Now skip to the Verify Java Installation step.

Windows Installation

Start by downloading the EXE for Java 8u241 provided above.

Unless you are comfortable with the Windows environment, just accept the default values of both installers.

Once the download is completed, run the EXE and follow its instructions. There are two parts to the Windows installer, the JDK and JRE portions.

Make a note of or copy the install path of the JDK portion of the installation. This is the default path of the installer provided above. If you are using a different installer or a different version of Java, then the installation path will differ.

Once the installation is completed, we need to setup the Windows environment variables. To do this, open File Explorer by either hitting the Windows key and typing File Explorer or pressing the Windows key and hitting E.

Right-click on "This PC" and select the "Properties" menu item.

Click on "Advanced Settings", located on the bottom of the left hand side/

Click on the "Environment Variables" button in the "System Properties" window.

In the bottom pane, the one labeled "System variables", scroll down until you find the entry labeled "Path" and click on it, this should highlight it. Now click the "Edit" button.

and then the "New" button in the "Edit environment variables" windows that just opened. Now type in or paste the path you noted during the JDK installation and add bin\ to the end. It should look something similar to the path below:

C:\Program Files\Java\jdk1.8.0_241\bin\

Now click "Ok" to close this one window.

Now click on the "New" button to open the "New System Variable" window.

For the "Variable name" enter "CLASSPATH" (without the quotes) and for the "Variable value" enter a period, "." (without the quotes). Once you have entered these values, click "Ok" to close the window.

Now click "Ok" to close the "Environment Variables" window and finally click "Ok" to close the "System properties" window.

Now skip to the Verify Java Installation step.

Verifying Java Installation

Finally type java -version into a terminal window or command prompt to verify the installation and the version you are running. You should see the following version number at the top of the information returned to you:

java version "1.8.0_241"
or (as sometimes Java updates in the background)
java version "1.8.0_261"