Determining the JRE System Library

These instructions are for Eclipse Oxygen (which is installed on the PCs in KEC 119 and KEC 123). The instructions will be similar for other versions of Eclipse - but there might be some slight differences.

All of the labs have been reconfigured to use JRE System Library[JavaSE-1.8], which is installed on the PC’s in both KEC 119 and KEC 123. It is possible that the configuration you are using on your own PC, or even on a lab PC could vary such that no suitable version of Java JRE 1.8 can be found. The instructions below will help you establish the proper JRE System Libraries for the labs for CS320.

If you are using an older version of the JRE System Library, you might need to change the default JRE System Library version to a later version in order to get CS320_Lab02 to work. A JRE System Library version of jre1.8.0_51 or later should work fine - choose the latest version available.

In KEC 119 and KEC 123, the latest version of the JRE System Library is 1.8.0_181.

Changing the JRE System Library

On the other hand, if the JRE System Library is shown as “unbound”, you will likely need to switch to a compatible library.

Go to C:/Program Files/Java and look for a JDK folder labelled jdk1.8.0_xxx. Hopefully, you have one of those installed in the Java folder. For the lab PCs, there could be multiple versions installed - choose the latest version. If a compatible version is present, then do the following:

Installing a new JDK from Oracle

If you do not find an acceptable JDK installed on your computer, you’ll have to install one from this location:

Oracle Java SE 8 Downloads

Create a free Oracle account and then download and install the appropriate version for your Eclipse/java installation - the 64-bit version will show up in C:/Program Files/Java, and then you can select it as described above.

Other Issues

There are some other issues that have been popping up with CS320_Lab02.