简体   繁体   English

Eclipse Oxygen:不兼容的Java版本

[英]Eclipse Oxygen : Incompatible java versions

I have just installed Eclipse Oxygen and created a JFrame project. 我刚刚安装了Eclipse Oxygen并创建了一个JFrame项目。 While switching from source view to design view, i am getting "incompatible java version error". 从源视图切换到设计视图时,出现“不兼容的Java版本错误”。

Full error Desc : Eclipse is running under 0, but this Java project has a 10 Java compliance level, so WindowBuilder will not be able to load classes from this project. 完全错误Desc:Eclipse在0以下运行,但是此Java项目的Java兼容级别为10,因此WindowBuilder将无法从该项目中加载类。 Use a lower level of Java for the project, or run Eclipse using a newer Java version. 对项目使用较低级别的Java,或者使用较新的Java版本运行Eclipse。

I checked version in windows --> preferences --> java --> compiler where compiler compliance level is 10 and checked in Project Properties --> java compiler --> compiler compliance level is 10. 我在Windows中检查了版本->首选项-> Java->编译器的编译器遵从级别为10,然后在项目属性-> Java编译器->编译器遵从级别为10中进行了检查。

How to resolve this problem? 如何解决这个问题? i surfed google but nothing works... 我冲浪了谷歌,但没有用...

Windowbuilder currently does not work with Java 9 or 10. This is described in Eclipse bug 517291 . Windowbuilder当前不适用于Java 9或10。Eclipsebug 517291中对此进行了描述。

Running Eclipse with Java 8 seems to be the only way to run windowbuilder. 使用Java 8运行Eclipse似乎是运行windowbuilder的唯一方法。

I just asked the same question on 5th of May and I found the answer myself. 我只是在5月5日问了同样的问题,我自己找到了答案。 Yet MY QUESTION is marked as "duplicate" whereas you were the one to ask the same exact question 3 days after me. 但是我的问题被标记为“重复”,而您是在我问三天后问同样的问题的人。 Yall must be so desperate to get points. 雅尔一定非常渴望获得积分。 -_- Incompatible Java versions. -_- 不兼容的Java版本。 Eclipse running under 0 Eclipse在0以下运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM