卸载JDK之后,eclipse打不开

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/huangzhilin2015/article/details/50157859

之前使用eclipse时,指定了使用自己安装的jdk7,现在因为项目需求,需要使用jdk8。于是卸载了jdk7,重新安装了jdk8,并且修改了JAVA_HOME。

不过之后就发现打不开eclipse,自己的解决问题如下:

打开eclipse根目录下eclipse.ini文件,-vmargs之前增加-vm配置,如下:

eclipse.ini

<span style="font-size:18px;">-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
I:\Java\jdk1.8.0_65\jre\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m</span>


猜你喜欢

转载自blog.csdn.net/huangzhilin2015/article/details/50157859