Why won't eclipse oxygen start (for the first time)? [duplicate]
Problem: Eclipse Oxygen fails to launch, throwing a Java class not found exception related to the javax.annotation.PostConstruct and javax.annotation.PreDestroy annotations.
Answer:
To resolve this issue when using Eclipse Oxygen with Java 9, you need to modify the eclipse.ini file located in your Eclipse installation directory. Add the following line after the -vmargs line:
--add-modules=java.se.ee
This line ensures that the Java 9 module containing the missing classes is added to your Eclipse installation. Alternatively, you can use the following line:
--add-modules=ALL-SYSTEM
Additional Notes:
The above is the detailed content of Why Won't Eclipse Oxygen Start Due to Java Annotation Errors?. For more information, please follow other related articles on the PHP Chinese website!