不兼容的Java版本.Eclipse在0以下运行 [英] Incompatible Java versions. Eclipse running under 0

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

问题描述

我想创建一个JFrame(获得了所需的所有Swing库),但这就是设计"选项卡上显示的内容.我一直在寻找类似的问题,但它只显示一些其他特定的数字,例如"Eclipse在1.6以下运行"或"1.7"等.但是我从未见过"Eclipse在0以下运行",这甚至意味着什么?我卸载了Java和eclipse,然后又重新安装了它们……同样的问题.执行工作正常,但我也希望能够在设计"选项卡上编辑框架的外观.

I wanted to create a JFrame (got all the Swing libraries needed) but this is what shows up on the design tab. I've been looking for similar problems but it only shows some other specific numbers , for example "Eclipse is running under 1.6" or "1.7" etc. But never have I seen "Eclipse running under 0" , what does this even mean? I uninstalled java and eclipse and re-installed them all over again...same problem. The execution works fine but I want to be able to edit the look of the frame on the design tab too.

推荐答案

我刚刚卸载了JDK 10,取而代之的是JDK 8u171.它正在按应有的方式工作.您只需要将项目的所有JRE系统库都更改为[jre1.8.0_171],并更改编译器,您就可以开始了.到目前为止,我只尝试了版本8,但没有尝试过其他版本,但是我自己的想法是版本10出现了问题,这意味着版本9也可以使用,但我不想放弃.(甚至还有JDK的版本9吗?我看不到任何...)

I just uninstalled JDK 10 and got the JDK 8u171 instead. And it's working just like it should have. You're just gonna have to change all of your project's JRE System Library to [jre1.8.0_171] and the compiler too and you're good to go. So far I only tried version 8 and it works, haven't tried other versions but my own thought is that the problem is with version 10, which means maybe version 9 works too but I didn't want to give it a go. (is there even a version 9 of JDK? I don't see any...)

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

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