Eclipse neon"无法创建JVM"

Sac*_*apa 4 eclipse

我们在Java 1.7上设置了eclipse neon,它无法开始显示带有消息的弹出窗口

错误:无法创建Java虚拟机.
错误:发生了致命异常.程序将会退出.

这是eclipse.ini中的配置

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx512m
Run Code Online (Sandbox Code Playgroud)

Him*_*ari 12

我觉得这个答案很有帮助.即使在使用java 8之后我也遇到了这个错误,所以只需删除eclipse.ini文件,但先备份.


小智 6

从Eclipse Platform 4.6和Neon版本开始,运行Eclipse需要Java 8(或更高版本)JRE或JDK.