Cannot create Eclipse workspace

巧了我就是萌 提交于 2019-11-29 10:09:01
greg-449

You are starting Eclipse using Java 9. This currently does not work with recent builds of Java 9.

Eclipse bug 493761 describes this problem and is currently scheduled to be fixed in Eclipse 4.6.2 (Neon.2)

Until Eclipse 4.6.2 is available use a Java 8 JDK to run Eclipse.

Update:

To run Eclipse with Java 9 you need to modify the 'eclipse.ini' file in your Eclipse installation and add the line:

--add-modules=ALL-SYSTEM

as a line following the -vmargs line in the file. This adds the Java 9 module containing the missing classes.

Eclipse Oxygen.1a (4.7.1a) due for release on 11 October 2017 will have full Java 9 support.

Also see Configuring Eclipse for Java 9 in the Eclipse wiki.

Made it to work in OSX Sierra by adding the following:

--add-modules=java.se.ee

at the end of eclipse.ini

Works for me using the most recent Java 9 early access build b143 and Neon Release 4.6.0

Just add

--add-modules=java.annotations.common

to the eclipse ini after -vmargs

Adding --add-modules=java.se.ee, after -vmargs in STS.ini or eclipse.ini will solve the launching issue.

-vmargs
--add-modules=java.se.ee
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Dosgi.module.lock.timeout=10
-Xverify:none
-Dorg.eclipse.swt.browser.IEVersion=10001
-Xmx1200m

refer to the link: https://bugs.eclipse.org/bugs/show_bug.cgi?id=493761 for more information

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!