gpt4 book ai didi

java - Eclipse Design Tab 检测到错误的 Java

转载 作者:行者123 更新时间:2023-12-01 11:24:39 25 4
gpt4 key购买 nike

当我单击“设计”选项卡时,出现此错误:

Incompatible Java Versions

Eclipse is running under 1.7, but this Java project has a 1.8 Java compliance level, so WindowBuilder will not be able to load classes from this project. Use a lower level of Java for the project, or run Eclipse using a newer Java version.

我已经检查了 window> 首选项:

  1. >java>编译器设置为 1.8
  2. >java>安装的 JRE 默认为 1.8 JDK

我错过了什么吗?

最佳答案

looks like JAVA_HOME is set to the java 7 one, will this require a restart?

您实际上是使用 Java 7 执行 eclipse,您可以更新 JAVA_HOME 以指向 Java 8,然后重新启动 eclipse(而不是您的计算机)。

关于java - Eclipse Design Tab 检测到错误的 Java,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30929475/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com