• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

启动eclipse报错 could not create the java virtual machine

java 来源:chenghaibing2008 4次浏览

在eclipse的安装目录,找到eclipse.ini文件

D:\Program Files\eclipse\jee-oxygen\eclipse\eclipse.ini

解决方式,打开该int文件,找下是否有vm段

-startup

plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar

–launcher.library

D:\MyConfiguration\XX\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834

-product

org.eclipse.epp.package.jee.product

-showsplash

org.eclipse.epp.package.common

–launcher.defaultAction

openFile

–launcher.appendVmargs

-vmargs

-Dosgi.requiredJavaVersion=1.8

-Dosgi.instance.area.default=@user.home/eclipse-workspace

-XX:+UseG1GC

-XX:+UseStringDeduplication

–add-modules=ALL-SYSTEM

-Dosgi.requiredJavaVersion=1.8

-Xms256m

-Xmx1024m

–add-modules=ALL-SYSTEM

-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/

在-vmargs之前添加-vm,即可解决问题

-vm

D:\Program Files\Java\jdk1.8.0_11\bin

-startup

plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar

–launcher.library

D:\MyConfiguration\XX\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834

-product

org.eclipse.epp.package.jee.product

-showsplash

org.eclipse.epp.package.common

–launcher.defaultAction

openFile

–launcher.appendVmargs


-vm
D:\Program Files\Java\jdk1.8.0_11\bin


-vmargs

-Dosgi.requiredJavaVersion=1.8

-Dosgi.instance.area.default=@user.home/eclipse-workspace

-XX:+UseG1GC

-XX:+UseStringDeduplication

–add-modules=ALL-SYSTEM

-Dosgi.requiredJavaVersion=1.8

-Xms256m

-Xmx1024m

–add-modules=ALL-SYSTEM

-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/


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)