2016-11-23 65 views
0

我有Eclipse Neon x64和OS是Windows 10 x64,jdk1.8.0_73。所有工作正常,我更新了日食,现在显示“无法创建Java虚拟机”。我也设置了JAVA_HOME和Path变量。我尝试编辑eclipse.ini文件,尝试更改-Xmx,-Xms,添加-vm ... java路径..等。但没有工作。我的eclipse.ini文件是:Eclipse Mars更新错误

-startup 
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar 
--launcher.library 
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444 
-product 
org.eclipse.epp.package.jee.product 
--launcher.defaultAction 
openFile 
-showsplash 
org.eclipse.platform 
--launcher.defaultAction 
openFile 
--launcher.appendVmargs 
-vmargs 
-javaagent:E:\Eclipse Neon\eclipse\plugins\com.zeroturnaround.eclipse.optimizer.plugin_1.0.11/agent/eclipse-optimizer-agent.jar 
-server 
-XX:PermSize=256m 
-XX:MaxPermSize=512m 
-XX:+UseParallelGC 
-Dosgi.requiredJavaVersion=1.8 
-XX:+UseG1GC 
-XX:+UseStringDeduplication 
-Dosgi.requiredJavaVersion=1.8 
-Xms256m 
-Xmx1024m 

请给我一些解决方案。

+0

这里的一些建议:http://stackoverflow.com/questions/7302604/eclipse-error-failed-to-create-the-java-virtual-machine – racraman

+0

感谢您的回复。在回答问题之前,我尝试了这篇文章中的建议。 – SudeepShakya

+0

我加了-vm“C:\ Program Files \ Java \ jdk1.8.0_73 \ bin \ javaw.exe”,它工作。以前我没有在vm路径中添加“”。 – SudeepShakya

回答

0

我在-vmargs行之前添加了-vm“C:\ Program Files \ Java \ jdk1.8.0_73 \ bin \ javaw.exe”到eclipse.ini,您需要删除或注释掉-vmargs并且它已经工作。