I am installing Eclipse error and I am getting this error
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(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy cannot be found by org.eclipse.e4.core.di_1.6.1.v20160712-0927
I have set "Path" in System variables as "C:\Program Files\Java\jdk-10.0.1\bin;C:\Program Files\Java\jre-10.0.1\bin" and "CLASSPATH" in System Variables as "C:\Program Files\Java\jdk-10.0.1\bin"
Hi,
Add this lines at end of your eclipse.ini
--add-modules=java.se.ee