Eclipse Jee Neon启动提示:JVM is not suitable for this product

具体提示如下所示:

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

Version 1.7.0_79 of the JVM is not suitable for this product.Version:1.8 or greater is required.<br/>

字面理解上,jdk1.7无法运行此eclipse,必须jdk1.8或以上版本。解决Version 1.7.0_79 of the JVM is not suitable for this product.Version:1.8 or greater is required.此问题有2个办法,第一种就是设置java的环境变量,把JAVA_HOME换成jdk1.8或者更高的版本,如何设置java的环境变量,可以看这篇文章:JDK环境变量配置

第二种方法,是修改eclipse.ini文件,在eclipse.ini文件上加上如下代码

-vm

D:/Program Files/Java/jdk1.8.0_91/bin

具体添加的位置在openFile下

-startup

plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar

--launcher.library

C:/Users/cao/.p2/pool/plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444

-product

org.eclipse.epp.package.jee.product

--launcher.defaultAction

openFile

-vm

D:/Program Files/Java/jdk1.8.0_91/bin

-showsplash

org.eclipse.platform

--launcher.appendVmargs

-vmargs

-Dosgi.requiredJavaVersion=1.8

-XX:+UseG1GC

-XX:+UseStringDeduplication

-Dosgi.requiredJavaVersion=1.8

-Xms256m

-Xmx1024m

-Declipse.p2.max.threads=10

-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest

-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/


这样Version 1.7.0_79 of the JVM is not suitable for this product.Version:1.8 or greater is required.的问题就解决了。

如若转载,请注明出处:http://www.codingwhy.com/view/844.html

联系我们

在线咨询: 点击这里给我发消息

邮件:731000228@qq.com