Eclipse Java™ 9 Support (BETA) for Neon

Update: Note that as of October 11/2017, Java 9 is 100% supported “out of the box” by Eclipse IDE, Oxygen Edition; Java 9 can be used to run your Eclipse IDE, Oxygen Edition, and can be used to build Java 9 applications without additional configuration. Download or update today.

I’ll admit to a certain amount of shame that it’s taken me this long to try out the Beta Java™ 9 support in Eclipse. It’s a work-in-progress, but certainly shows that progress is being made.

Here’s what I did.

I downloaded the early access version of Java 9 JDK from in the form of a tar.gz file that I decompressed into a local directory: /home/apps/jdk1.9.0. I made no other changes to my system.

I downloaded the Eclipse SDK 4.6 (Neon) M2 from the Eclipse Platform downloads and decompressed it into its own directory. I made a small change to the eclipse.ini file to make the new configuration run using the Java 9 runtime.


Note that this change occurs before the -vmargs line.

I launched Eclipse and opened the p2 installer using the Help > Install new software... menu option. I pointed the p2 installer at the Java 9 Beta software site and installed both features (one is the feature and the other is the corresponding source code).

Insta Java 9 Beta support from the software repository.

Insta Java 9 Beta support from the software repository.

I restarted Eclipse.

From there, I created a very simple “Hello world” application (using the JavaSE-1.9 Execution Environment), saved, and ran. It worked exactly as expected. There was much rejoicing (Perri brought brownies).

Next step: tinkering with Java 9.

If you’d like to see the Java 9 support in action, visit the Eclipse Foundation booth at JavaOne next week. Or better yet, drop by the Hackathon at EclipseCon Europe the following week and connect directly with committers from the development team.

EclipseCon Europe 2015

Update: I had mistakenly titled this “Mars”. Eclipse Mars does run on JDK 9, but to actually build Java 9 applications, you need to start from Neon. Note also that these instructions apply for both the JDK 9 EA and the JDK 9 EA with Jigsaw.

This entry was posted in Eclipse 101, Java and tagged . Bookmark the permalink.

7 Responses to Eclipse Java™ 9 Support (BETA) for Neon

  1. fbricon says:

    … and if you want to use Maven to build your Java 9 project, and m2e 1.7 is not already installed with your Eclipse Neon distro, you can install it from this update site:

    Just sayin’

  2. Gunnar says:

    Your blog title says Mars. You should update it to Neon. 🙂

  3. Pingback: Eclipse IDE on JDK 9 Early Access with Project Jigsaw | Eclipse Hints, Tips, and Random Musings

  4. Reto says:

    Unfortunately Eclipse can not be started anymore with Java 9 build-96, neither with the Jigsaw nor the normal snapshot release.

    !SESSION 2015-12-19 15:04:38.684 ———————————————–
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_CH
    Command-line arguments: -os win32 -ws win32 -arch x86_64 -data D:\Projekte\Eclipse\NeonTrial\workspace

    !ENTRY org.eclipse.equinox.common 4 0 2015-12-19 15:04:39.519
    !MESSAGE FrameworkEvent ERROR
    !STACK 0
    org.osgi.framework.BundleException: Could not resolve module: org.eclipse.equinox.common [102]
    Unresolved requirement: Require-Capability:; filter:=”(&(”

  5. Is there a reason that private methods in interfaces still cause a compile error?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s