【eclipse】启动时fail to create Java Virtual Machine

/*

*   Date:2013-9-29

*  Ques: 以前eclipse都能正常使用,今天一来点击就显示 fail to create java virtual  machine  就上网查。说JDK路径配置错误,一查都对;然后看到有修改eclipse.ini 配置文件的方法,说是eclipse 启动需要很大的内存,而启动不了是 内存不足

*:修改eclipse.ini 就可以正常运行了。

*/

找到eclipse安装目录下的eclipse.ini配置文件,打开如下:

[plain]  view plain copy print ?
  1. -startup  
  2. -vm D:\Java\jre6\bin\javaw  
  3. plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar  
  4. --launcher.library  
  5. plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502  
  6. -product  
  7. org.eclipse.epp.package.jee.product  
  8. --launcher.defaultAction  
  9. openFile  
  10. --launcher.XXMaxPermSize  
  11. 256M  
  12. -showsplash  
  13. org.eclipse.platform  
  14. --launcher.XXMaxPermSize  
  15. 256m  
  16. --launcher.defaultAction  
  17. openFile  
  18. -vmargs  
  19. -Dosgi.requiredJavaVersion=1.5  
  20. -Xms40m  
  21. -Xmx512m  
  22. -Dsun.lang.ClassLoader.allowArraySyntax=true  

        只要吧上面的256M改成128M,512M改成256M,改完之后如下:

[plain]  view plain copy print ?
  1. -startup  
  2. -vm D:\Java\jre6\bin\javaw  
  3. plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar  
  4. --launcher.library  
  5. plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502  
  6. -product  
  7. org.eclipse.epp.package.jee.product  
  8. --launcher.defaultAction  
  9. openFile  
  10. --launcher.XXMaxPermSize  
  11. 128M  
  12. -showsplash  
  13. org.eclipse.platform  
  14. --launcher.XXMaxPermSize  
  15. 128m  
  16. --launcher.defaultAction  
  17. openFile  
  18. -vmargs  
  19. -Dosgi.requiredJavaVersion=1.5  
  20. -Xms40m  
  21. -Xmx256m  
  22. -Dsun.lang.ClassLoader.allowArraySyntax=true  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值