安装 Eclipse Neon 报错
Installing Eclipse Neon error
我正在安装 Eclipse 错误,我收到了这个错误
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.1.v20160712-0927
...
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)at java.base/java.lang.Thread.run(未知来源)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.1.v20160712-0927
我在系统变量中将 "Path" 设置为 "C:\Program Files\Java\jdk-10.0.1\bin;C:\Program Files\Java\jre-10.0.1\bin"
和系统变量中的 "CLASSPATH" 作为 "C:\Program Files\Java\jdk-10.0.1\bin"
确保您的 Eclipse 版本与 JDK 匹配,两者都可以
64位或者都是32位,然后在
环境 .
嗨,
在 eclipse.ini
末尾添加此行
--add-modules=java.se.ee
如前所述 and ,请确保您的 Eclipse 版本可以与较新版本的 Java 一起使用。
因为我有同样的问题:
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
...
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
使用 Java 11
和 Eclipse Java EE IDE for Web Developers. Version: Oxygen Release (4.7.0) Build id: 20170620-1800
为了解决这个问题,我重新安装到:
Eclipse IDE for Enterprise Java Developers. Version: 2019-03 (4.11.0) Build id: 20190314-1200
来自 here.
我正在安装 Eclipse 错误,我收到了这个错误
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.1.v20160712-0927
...
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)at java.base/java.lang.Thread.run(未知来源)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.1.v20160712-0927
我在系统变量中将 "Path" 设置为 "C:\Program Files\Java\jdk-10.0.1\bin;C:\Program Files\Java\jre-10.0.1\bin" 和系统变量中的 "CLASSPATH" 作为 "C:\Program Files\Java\jdk-10.0.1\bin"
确保您的 Eclipse 版本与 JDK 匹配,两者都可以 64位或者都是32位,然后在 环境 .
嗨,
在 eclipse.ini
末尾添加此行--add-modules=java.se.ee
如前所述
因为我有同样的问题:
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
...
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
使用 Java 11
和 Eclipse Java EE IDE for Web Developers. Version: Oxygen Release (4.7.0) Build id: 20170620-1800
为了解决这个问题,我重新安装到:
Eclipse IDE for Enterprise Java Developers. Version: 2019-03 (4.11.0) Build id: 20190314-1200
来自 here.