不支持的Java版本:无法在Java 1.7下启动:需要Java 1.8或更高版本 [英] Unsupported Java Version: Cannot start under Java 1.7: Java 1.8 or later is required

查看:2653
本文介绍了不支持的Java版本:无法在Java 1.7下启动:需要Java 1.8或更高版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新到 IntelliJ IDEA 16 ,它附带 Java JDK 1.8 。 Fyi,我很久以前就已经下载了Java JDK 1.8。

I just updated to IntelliJ IDEA 16 which comes with Java JDK 1.8. Fyi, I had downloaded Java JDK 1.8 a long time ago.

我试图运行我正在开发的插件,我甚至不能这样做,我得到以下内容错误消息(略微浓缩)

I tried to run my plugin that I am developing, and I cannot even do that, I get the following error message (slightly condensed)


C:\Program Files\Java\jdk1.7.0_45\bin\java -Xmx512m -Xms256m -XX:MaxPermSize = 250m -ea-Xbootclasspath / a:C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA Community Edition 144.3143.6 \lib\boot.jar-Didea.config .path = C:\ Users \Christopher.IdeaIC14 \ system \plugins-sandbox \config - ... -Dfile.encoding = windows-1252 -classpathC:\Program Files\Java \ jdk1.7.0_45\lib\tools.jar; ...; C:\Program Files(x86)\ JetBrains\IntelliJ IDEA Community Edition 144.3143.6\lib\idea_rt.jarcom.intellij .rt.execution.application.AppMain com.intellij.idea.Main

"C:\Program Files\Java\jdk1.7.0_45\bin\java" -Xmx512m -Xms256m -XX:MaxPermSize=250m -ea "-Xbootclasspath/a:C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 144.3143.6\lib\boot.jar" -Didea.config.path=C:\Users\Christopher.IdeaIC14\system\plugins-sandbox\config - ... -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar; ... ;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 144.3143.6\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain com.intellij.idea.Main

不支持的Java版本:无法在Java 1.7.0_45-b18下启动:Java 1.8或以后是需要。

所以,我清楚地知道问题所在;但是,我似乎无法弄清楚解决这个问题的位置在哪里。

到目前为止,我已经尝试了很多东西;大多数情况下,请使用设置中的搜索框,并尽可能将版本1.8切换到版本1.8。另外,我已经将我的环境变量更新为Java从1.6到1.8

I have tried a lot of things so far; most involve using the search box in Settings and switching whatever I could to version 1.8. Also, I had updated my Environment Variable for Java from 1.6 to 1.8

通过所有这些更改,没有什么是加工!那么我该如何解决这个看似简单的问题呢?

With all of these changes, nothing is working! So how do I go about fixing this seemingly simple issue?

推荐答案

设置 IDEA_JDK (或 IDEA_JDK_64 )环境变量。

检查选择IDE将在下运行的JDK版本

Set IDEA_JDK (or IDEA_JDK_64) environment variable.
Check Selecting the JDK version the IDE will run under

这篇关于不支持的Java版本:无法在Java 1.7下启动:需要Java 1.8或更高版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆