360安全卫士与Eclipse 3.7启动冲突“Failed to create the Java Virtual Machine”解决方案

版权声明:欢迎转载,注明出处:来自CSDN博客作者弓人水。原文地址: https://blog.csdn.net/zzs0829/article/details/7468253

我本机内存为1G(机器1G内存以上可能不会出现此情况),360安全卫士运行中,启动Eclipse 3.7,启动失败,提示信息如下

Failed to create the Java Virtual Machine

解决方案一:减小Eclipse的启动初始化内存值

修改文件“安装目录/eclipse/eclipse.ini”中的内存值,如下:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128M
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

注:第10行和第14行的128M值,原本为256M。

解决方案二:指定Eclipse启动的JVM(建议采用)

修改文件“安装目录/eclipse/eclipse.ini”,在文件中添加如下信息:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
--launcher.defaultAction
openFile
-vm
C:/Program Files/Java/jre7/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

注:第17行和第18行的文字要放在第19行“-vmargs”之前,而且要改写成本机JDK或者JRE的“bin/javaw.exe”。

猜你喜欢

转载自blog.csdn.net/zzs0829/article/details/7468253