This tutorial is going to cover how to set up Eclipse, IntelliJ and NetBeans for Java 9 which has been released.

1. Prerequisites

Java 9 is installed in your environment. You can download it from the official website or follow instructions from below tutorials to install it.

2. Set Up Eclipse For Java 9

2.1. Prerequisites

You need Oxygen (4.7 or above) Eclipse SDK.

Install Java 9 Support for Oxygen for Eclipse from Eclipse Marketplace.

The Eclipse Java™ 9 Support contains the following:

Ability to add JRE and JDK 9 as installed JRE.

Support for JavaSE-9 execution environment.

Ability to create Java and Plug-in projects that use a JRE or JDK 9.

Ability to compile modules that are part of a Java project.

2.2. Download and Install Eclipse

You can obtain an appropriate version of Eclipse Oxygen at the Eclipse download page and get it installed by simply extracting the compressed file.

Notice that if you install Java 9 and use it to run Eclipse, then you may get the following error when you start Eclipse:

To fix this error, you will need to specify the use of your Java 9 VM by adding the following lines after the –launcher.appendVmargs line to the eclipse.ini file.

-vm C:\Program Files\Java\jdk-9\bin\javaw.exe 1 2 - vm C : \ Program Files \ Java \ jdk - 9 \ bin \ javaw . exe

In addition, we will need to add the following vmargs to eclipse.ini:

--add-modules=ALL-SYSTEM 1 -- add - modules = ALL - SYSTEM

So, the eclipse.ini should contain the following lines:

--launcher.appendVmargs -vm C:\Program Files\Java\jdk-9\bin\javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.8 --add-modules=ALL-SYSTEM 1 2 3 4 5 6 -- launcher . appendVmargs - vm C : \ Program Files \ Java \ jdk - 9 \ bin \ javaw . exe - vmargs - Dosgi . requiredJavaVersion = 1.8 -- add - modules = ALL - SYSTEM

2.3. Install Java 9 Support for Oxygen for Eclipse

As mentioned in above link, to install the Eclipse Java™ 9 Support, there are two possible ways:

Drag and drop the below install button onto your running Eclipse.