Monday, September 25, 2017

Setup Java 9 in Eclipse Oxygen

This post gives the quick steps to setup Eclipse Oxygen with Java 9. This relies on Java™ 9 support for Eclipse JDT is available now. At this time, the it is not fully functional, and I have faced a couple of issues setting this up. Full support for Java 9 is expected on October 11, 2017 with Oxygen 1a release. Follow these steps to install the support for Java 9.
  1. Download and Install Java 9 available at Oracle Java SE Download page. On Windows machines, it will automatically update your path to use Java 9. Once you install, open a command line window and run "java -version" to verify. It should like below
    C:\>java -version
    java version "9"
    Java(TM) SE Runtime Environment (build 9+181)
    Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
  2. Go to the Eclipse Marketplace and search for "Java 9". You should be able to see "Java 9 Support for Oxygen 4.7".
  3. Click Install. You can ignore "Eclipse CVS Client", "Eclipse Project SDK", and "org.eclipse.sdk.ide" options and click confirm.
  4. Select "Update my installation to be compatible with the items being installed", if you see the second confirm dialog as shown below. And click Confirm.
  5. Agree to the term and click finish.
  6. Once eclipse restarts, you should be able to see jre-9 in "Installed JREs". To see this go to Window->Preferences->Java->Installed JREs.
  7. Once this is setup, you should be able to run Java 9 projects like any other project.

No comments:

Post a Comment

Popular Posts