> Neon: how to run on jdk9? 9个
我安装了Spring Tool Suite(版本3.9.0).它以前工作得很好.安装JDK 9后,我无法启动Spring Tool Suite.
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy at
org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:450)
at
org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:156)
at
org.eclipse.e4.core.internal.contexts.ContextObjectsupplier$ContextInjectionListener.update(ContextObjectsupplier.java:78)
at
org.eclipse.e4.core.internal.contexts.TrackablecomputationExt.update(TrackablecomputationExt.java:111)
at
org.eclipse.e4.core.internal.contexts.TrackablecomputationExt.handleInvalid(TrackablecomputationExt.java:74)
at
org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:178)
at
org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOsgi.dispose(EclipseContextOsgi.java:99)
at
org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOsgi.bundleChanged(EclipseContextOsgi.java:141)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)
at
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)
at
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)
at
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168)
at org.eclipse.osgi.container.Module.publishEvent(Module.java:476) at
org.eclipse.osgi.container.Module.doStop(Module.java:634) at
org.eclipse.osgi.container.Module.stop(Module.java:498) at
org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202) at
org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
at java.base/java.lang.Thread.run(Thread.java:844) Caused by:
java.lang.classNotFoundException: javax.annotation.PreDestroy cannot
be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418 at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at
org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.base/java.lang.classLoader.loadClass(ClassLoader.java:496)
这个问题真的是因为JDK 9吗?请指出我正确的方向来解决问题.
谢谢.