java eclipse oxygen,Eclipse Oxygen:不兼容的Java版本

在尝试将Eclipse Oxygen的源代码视图切换到设计视图时,遇到'不兼容的Java版本错误'。错误指出Eclipse运行在Java 0上,但项目设置为Java 10。已检查过编译器和项目属性,两者都配置为Java 10。解决方案是使用Java 8运行Eclipse,因为WindowBuilder目前不支持Java 9或10。
摘要由CSDN通过智能技术生成

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".

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.

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.

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.

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值