eclipse3.6启动时弹出Failed to create the Java Virtual Machine 解决方案

来源:互联网 发布:淘宝商家登录中心 编辑:程序博客网 时间:2024/06/05 14:34

当我们在Eclipse3.6启动时,会弹出Failed to create the Java Virtual Machine ,这会让我们非常迷茫,怎么会找不到Java  Virtual  Machine 呢?? 本人在Eclipse官网上无意中找到一个信息,说这是Eclipse3.6的一个漏洞, 我们只需要修改两个数据就可以了,步骤如下:找到Eclipse目录下的eclipse.ini

-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.5
-Xms40m
-Xmx512m
 
将其修改为如下内容,即可启动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
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx256m



原创粉丝点击