启动eclipse时候提示错误Error:Could not create the Java Virtual Machine. Error:A Fatal exception has occurred

解决办法是:

首先把这两个选项勾选,才能看到eclipse.ini完整的文件名。然后用记事本等工具打开编辑。

新版的里面原本是这样:

-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
C:/Users/scc/.p2/pool/plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-vm //
D:\IDE\java\bin//这两行是需要增加进去的,代表你jvm的位置。新版里面没有这个配置,需要你手动添加自己的jvm
-showsplash
org.eclipse.platform
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m  //补充这个是虚拟机的内存选项大小
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/

配置文件修改完毕即可成功运行

发布了225 篇原创文章 · 获赞 30 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/qq_35634181/article/details/95038914