How to configure Java 9 Support for Oxygen (4.7)

Up to now, Java 9 has not yet integrated with standard download packages of Eclipse. But in the tutorial, JavaSampleApproach will introduce Java 9 Support (BETA) for Oxygen (4.7) that can help us to start Java 9 with Eclipse right now.


I. Technologies

– Java 9
– Eclipse Project Oxygen (4.7)

II. Java 9 Support (BETA) for Oxygen

The Eclipse Java™ 9 Support (BETA) contains the following supported features:
– Add JRE & JDK 9 as installed JRE
– Support for JavaSE-9 execution environment
– Create Java and Plug-in projects that use a JRE or JDK 9
– Compile modules that are part of a Java project

III. Practices

Step to do:
– Install Java 9
– Install Eclipse Project Oxygen with Java 9 Support
– Install Java 9 Support & Launch a Project with Java 9

1. Install Java 9

– Download Java 9 at: JDK™ 9 Early Access Releases
– Double click on Java 9 setup file then follow step-by-step guidelines for installing.

install-java9 - result

– Finally, we have a jdk-9 folder:
install java 9

2. Install Eclipse Oxygen

2.1 Download Eclipse Oxygen (4.7)
– Link at: ECLIPSE DOWNLOADS

2.2 Install Marketplace Client(MPC)
– Extract eclipse-SDK-4.7M5-win32-x86_64.zip file, then enter to eclipse folder:
java 9 - Oxygen M5

Then launching Oxygen Eclipse by double click on file: eclipse.exe

– Open Help->Install New Software…
Add MPC repository with address: MPC Repo
java 9 - Oxygen M5 - install MPC
Then install MPC by following step-by-step of Eclipse’s guideline. Result as below image:
java 9 starter- Oxygen M5 - Install MPC result

3. Install Java 9 Support & Launch Java Project with Java 9

3.1 Create a Java project with Java 9 syntax
List list =List.of("one", "two", "three");

Having syntax error as below image:

java 9 starter - syntax error

Syntax Error -> Why? -> Because of JDK 8.
->Solution: use JDK 9

3.2 Install Java 9 Support (BETA) for Oxygen
– Open MPC, find java 9 support, then press Install.

install-Java 9 Support (BETA) for Oxygen

3.3 Configure JDK 9
On main menu, navigate to Project -> Properties -> Java Build Path -> Libraries, add JDK 9:

install-java 9 starter- jdk 9

Then the syntax error has been removed by JDK 9.

Run & Enjoy result:

java9 starter - no syntax error

Now you can try more with Java 9. Thank you!


Related Posts



2 thoughts on “How to configure Java 9 Support for Oxygen (4.7)”

  1. Hi
    I’ve got problem with this tutorial, because I cannot run project with unknown reason (empty error popup). When I go -> run configurations I see it’s empty “Main class” section and button “Search” doesn’t work. When I wrote main class manually it’s working, so I don’t know what’s the problem :/ Maybe it’s Eclipse issue ?

Got Something To Say:

Your email address will not be published. Required fields are marked *

*