Installing Java for CS-140

In order to compile Java language code into Java executable code, you need the Java Software Development Kit (or Java SDK). There are several different flavors of Java platforms, including the "Enterprise Edition" (Java EE), the Standard Edition (Java SE), the Micro Edition (Java ME), etc. We will be using the standard edition, or Java SE in this class.

Installing the Java Development Kit

There is a video available in MyCourses under CS-140 "Panopto Videos" that demonstrates download/install of the Java SE JDK on a Windows 10 machine. Use this as a reference for other platforms as well, making the obvious platform specific changes.

You should download the Java Standard Edition (Java SE) Java Development Kit (JDK) from Oracle: this link. You should select the latest JDK 10 (currently JDK 10.0.2). Note that the JDK includes the Java Runtime Environment (JRE) that is compatible with the development environment. You will not need to download a separate JRE.

Here are some more platform specific instructions:

Mac
If you have a 32 bit Mac (which is not very likely these days - for instance, Core 2 Duos are 64 bit for the Mac OS), you should not remove Java SE Version 6, which is part of the Mac platform. In this case, you will not be able to install the required version of the Java Development Kit on your machine. One alternative is to remotely log in to one of the University's UNIX servers, for instance, harvey.binghamton.edu.
Windows
In Windows, you will have to change your PATH environment.

Unix
Use the 64 bit version for Linux if you have a 64 bit machine. It is better to download and install the version from Oracle than the ones in the current releases of your version of Linux. Look for instructions online to set up the paths.

Using an Integrated Development Environment (IDE)

At the start of the semester, we will be using Java without using an IDE, just to understand the basics. Eventually, we will download and start using the Eclipse IDE. When that time comes, there is a separate web page that describes the installation of Eclipse.