eclipse启动时弹出Failed to create the Java Virtual Machine

eclipse
2024-12-03 02:43:56
推荐回答(1个)
回答(1):

JAVA虚拟机报错. 是eclipse版本和虚拟机不兼容导致.
解决方法:
打开eclipse所在目录,找到 eclipse.ini文件,将其修改为如下内容,即可启动Eclipse

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m