Eclipse Oxygen:不兼容的Java版本 [英] Eclipse Oxygen : Incompatible java versions

查看:329
本文介绍了Eclipse Oxygen:不兼容的Java版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Eclipse Oxygen并创建了一个JFrame项目.从源视图切换到设计视图时,出现不兼容的Java版本错误".

I have just installed Eclipse Oxygen and created a JFrame project. While switching from source view to design view, i am getting "incompatible java version error".

完全错误Desc:Eclipse在0以下运行,但是此Java项目的Java遵从级别为10,因此WindowBuilder将无法从该项目中加载类.在项目中使用较低级别的Java,或者使用较新的Java版本运行Eclipse.

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. Use a lower level of Java for the project, or run Eclipse using a newer Java version.

我在Windows中检查版本->首选项-> Java->编译器符合性级别为10的编译器 并在项目属性-> Java编译器->编译器符合级别为10中进行检查.

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.

如何解决此问题?我浏览了google,但没有任何效果...

How to resolve this problem? i surfed google but nothing works...

推荐答案

Windowbuilder当前不适用于Java 9或10.Eclipsebug

Windowbuilder currently does not work with Java 9 or 10. This is described in Eclipse bug 517291.

使用Java 8运行Eclipse似乎是运行windowbuilder的唯一方法.

Running Eclipse with Java 8 seems to be the only way to run windowbuilder.

这篇关于Eclipse Oxygen:不兼容的Java版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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