Eclipse Oxygen can not be opened using Java 9


On September 21, 2017, Java 9 officially appeared. I want to try what new Java offers, mainly that acclaimed system of modules. I just installed Oracle JDK 9 on my computer and Eclipse Oxygen that has a plugin to support the development in Java 9 (as of September 22, 2017 in beta). All right, I installed the tools, but when I run the Eclipse I see an error message appears and I can not see my workspace. Here the image of the message:

I try to see the content of the error message but I find it very strange what it says:


! ENTRY org.eclipse.e4.ui.workbench 4 0 2017-09-22 01: 30: 39,845   ! MESSAGE FrameworkEvent ERROR! STACK 0 java.lang.NoClassDefFoundError:   javax / annotation / PreDestroy           at org.eclipse.e4.core.internal.di.InjectorImpl.disposed (           at org.eclipse.e4.core.internal.di.Requestor.disposed (           at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier $ ContextInjectionListener.update (           at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update (           at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid (           at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose (           at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose (           at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged (           at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent (           at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent (           at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous (           at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged (           at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent (           at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent (           at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent (           at org.eclipse.osgi.container.Module.publishEvent (           at org.eclipse.osgi.container.Module.doStop (           at org.eclipse.osgi.container.Module.stop (           at org.eclipse.osgi.container.SystemModule.stop (           at org.eclipse.osgi.internal.framework.EquinoxBundle $ SystemBundle $ EquinoxSystemModule $ (           at java.base / ( Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy can not   be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418           at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal (           at org.eclipse.osgi.internal.loader.BundleLoader.findClass (           at org.eclipse.osgi.internal.loader.BundleLoader.findClass (           at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass (           at java.base / java.lang.ClassLoader.loadClass (           ... 21 more

What can I do to run Eclipse with JDK 9 installed on my computer?

asked by 22.09.2017 в 08:36

1 answer


Regardless of the operating system, what you should do is locate the file eclipse.ini 1 of your Eclipse installation and add the following line:

With this you can run Eclipse without problems, but with the elementary packages to run a Java console application.

To be able to implement any type of Java application with Eclipse, you can add the following configuration:


Source: link

1 On Windows and Linux, the eclipse.ini file is located in the eclipse installation folder. In MacOS, the eclipse.ini file is located inside

answered by 22.09.2017 в 08:36