Java日食氧气4.7.3a? [英] Java swing on eclipse oxygen 4.7.3a?

查看:200
本文介绍了Java日食氧气4.7.3a?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在macOS highSierra上的Eclipse Eclipse 4.7.3a上使用windowbuilder。它安装得很好,但每次我尝试打开设计部分时都会显示此错误

I am trying to use windowbuilder on eclipse oxygen 4.7.3a on macOS highSierra. it installed fine but every time I try to open the design part it displays this error


Eclipse运行在0以下,但这个Java项目有一个1.8 Java
的合规级别,因此WindowBuilder将无法从该项目加载类
。为项目使用较低级别的Java,或使用较新的Java版本运行
Eclipse。

Eclipse is running under 0, 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.

我尝试了一切。比如改变正在运行的环境,.jre文件,尝试不同的JDE。一切正常。任何建议?

I tried everything. like changing the running enviroment, .jre files, try different JDE. nothing working. any suggestions?

推荐答案

您唯一的短期解决方案是使用Java版本< = 9。

Your only short term solution is to use a Java version <= 9.

由于多种原因,最初WindowBuilder无法与Java 9一起使用。请参阅
错误526098 - WindowBuilder无法在Java 9上运行

Initially WindowBuilder did not work with Java 9 for several reasons. See Bug 526098 - WindowBuilder fails to work on Java 9.

其中一个问题是系统属性 java.version 意外地只是9:

One of those issues was that the the System Property java.version was unexpectedly just "9":


请检查你是否有9.0 JDK,它对我来说是
9.0.1,直到我将目标JRE降级到9.0,这有不寻常的 System.getProperty(java.version)。equals(9)

使WindowsBuilder在Java 9上运行的修复程序仅在2/21/18完成,并且基于您的错误,当使用Java 10运行WindowsBuilder时,看起来存在类似问题。我建议您使用Eclipse创建错误报告

The fixes to get WindowsBuilder working on Java 9 were only completed on 2/21/18, and based on your error it looks like a similar issue exists when running WindowsBuilder using Java 10. I suggest you create a Bug Report with Eclipse.

参见:

  • SO Post Eclipse Oxygen Window Builder Error with Java SE 10.0.1 where the solution/workaround was to regress to Java 9.
  • This Eclipse Forum post where a user is reporting a similar problem to yours.

这篇关于Java日食氧气4.7.3a?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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