eclipse 双击没反应,无法启动问题

问题描述:

    昨天遇到一个奇葩问题,我的eclipse4.3突然无法启动了,怎么打开都没反应!

    由于公司项目需要,将jdk从1.7.9升级到了1.8.0。在安装好jdk1.8.0后,将eclipse4.3里的jdk也加入了1.8.0。
之后就是一直卡着,连带着电脑也很卡,我终于等他加载完后,关闭eclipse4.3并重启电脑。之后就出现了eclipse4.3无法启动的问题。

问题原因:

    由于eclipse的启动依赖jdk,因此我找到了可以打开的eclipse4.5的eclipse.ini和无法打开的eclipse4.3的eclipse.ini。分别如下:
   
   eclipse4.5
  1. -startup
  2. plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
  3. --launcher.library
  4. plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
  5. -product
  6. org.eclipse.epp.package.jee.product
  7. --launcher.defaultAction
  8. openFile
  9. --launcher.XXMaxPermSize
  10. 256M
  11. -showsplash
  12. org.eclipse.platform
  13. --launcher.XXMaxPermSize
  14. 256m
  15. --launcher.defaultAction
  16. openFile
  17. -vm
  18. F:JAVAjdk1.7.79injavaw.exe
  19. -vmargs
  20. -Dosgi.requiredJavaVersion=1.5
  21. -Dhelp.lucene.tokenizer=standard
  22. -Xms40m
  23. -Xmx512m
 
    eclipse4.3
  1. -startup
  2. plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
  3. --launcher.library
  4. plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
  5. -product
  6. org.eclipse.epp.package.jee.product
  7. --launcher.defaultAction
  8. openFile
  9. --launcher.XXMaxPermSize
  10. 256M
  11. -showsplash
  12. org.eclipse.platform
  13. --launcher.XXMaxPermSize
  14. 256m
  15. --launcher.defaultAction
  16. openFile
  17. --launcher.appendVmargs
  18. -vmargs
  19. -Dosgi.requiredJavaVersion=1.6
  20. -Xms256m
  21. -Xmx2048m
 
发现eclipse4.3里关于jdk的配置不见了,于是加上配置
  1. -startup
  2. plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
  3. --launcher.library
  4. plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
  5. -product
  6. org.eclipse.epp.package.jee.product
  7. --launcher.defaultAction
  8. openFile
  9. --launcher.XXMaxPermSize
  10. 256M
  11. -showsplash
  12. org.eclipse.platform
  13. --launcher.XXMaxPermSize
  14. 256m
  15. --launcher.defaultAction
  16. openFile
  17. -vm
  18. F:JAVAjdk1.8.0_101injavaw.exe
  19. --launcher.appendVmargs
  20. -vmargs
  21. -Dosgi.requiredJavaVersion=1.6
  22. -Xms256m
  23. -Xmx2048m
 
再次启动eclipse4.3,启动成功。
 

问题总结:

    eclipse启动依赖jdk,如果出现eclipse无法启动,可以尝试看下eclispe.ini里的jdk配置是否正确
 






文章源自微信公众号【刍荛采葑菲】,转载请注明。

原文地址:https://www.cnblogs.com/churao/p/5863841.html