Installing JDK 8 for MAC

If you have JDK 9 installed, you will need to also install JDK 8 which can be found here. After you install it, start eclipse and right click on your project and choose Properties.

EclipseJDK8Properties

Then select Java Build Path on the left and the Libraries tab on the right.

EclipseJDK8Library

The JRE System Library entry will probably be set to version 1.9. Select that entry and click the Edit button to the right:

EclipseJDK8EditLibrary

Select the Alternate JRE entry and click the Installed JREs button on the right:

EclipseJDK8Library2

If the Java SE 8 appears in the list, select it. Otherwise, click the Add button on the right:

EclipseJDK8Add

For the JRE home field, navigate to the shown path. For the JRE name give it something descriptive like JDK 8. Then click Finish.

EclipseJDK8Definition

Then back on the Installed JREs page, select the newly installed JDK 8 and click Apply and Close:

Screen Shot 2018-01-17 at 6.21.44 PM

Then back on the Edit Library page, make sure that the JDK 8 is selected and click Finish.

Screen Shot 2018-01-17 at 6.23.18 PM