9月21 号JDK9发布。今天终于有时间体验一把。
jdk9安装好以后,正常启动eclipse直接报错An error has occurred. See the log file …错误
根据错误提示查看D:\ProgramFiles\eclipseWorkspace.metadata目录下log 文件发现如下错误内容:
!ENTRY org.eclipse.osgi 4 0 2017-09-23 22:09:29.357
!MESSAGE Application error
!STACK 1
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:410)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java: