Version 1.7.0_80 of the JVM is not suitable for this product.Version: 1.8 or greater is required.

技术分享图片

Eclipse启动失败,设置eclipse启动jdk有2种方法

第一种:

直接安装eclipse对应的jdk版本,并设置环境变量

第二种:

修改eclipse配置文件eclipse.ini

在-startup上面加入以下内容(根据自己JDK的安装目录)

-vm

E:\java-tools1\JDK8_64\jdk1.8.0\bin

-vm
E:\java-tools1\JDK8_64\jdk1.8.0\bin
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

  

文章来自:https://www.cnblogs.com/bhy-1116/p/8353548.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3