`

eclipse Failed to create the Java Virtual Machine

阅读更多
由于项目里面用eclipse,今天从eclipse官网下载了一个Eclipse IDE For Java EE Developers,

版本:eclipse-jee-helios-win32

自己电脑上装的jdk版本是:1.6.0_20

解压后启动,发现弹出提示框“ Failed to create the Java Virtual Machine”


如:附件图片


解决方法:

找到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
修改–launcher.XXMaxPermSize  128

如下:
-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.5
-Xms40m
-Xmx512m
  • 大小: 33.6 KB
分享到:
评论
2 楼 helloklzs 2011-11-25  
主要是根据你自己的电脑配置来相应调整合适大小的
1 楼 kobe1029 2011-10-27  
为什么要这么设置??????

相关推荐

Global site tag (gtag.js) - Google Analytics