`

Eclipse启动时fail to create Java Virtual Machine问题的解决

 
阅读更多

转自:http://blog.csdn.net/lufeng20/article/details/7629555

 

 

 问题描述

        一开始我的eclipse还能用,还是好的,然后好像是360提示有个关于JAVA的漏洞,然后我就补了这个漏洞,启动eclipse时居然就启不起来了,提示fail to create Java Virtual Machine这个错误,

        于是上网找了答案,找到了解决方法,解决如下:

        解决办法

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

 

  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改成128M,改完之后如下:

 

  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  

 

        

        然后就能正常启动了。。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics