javac:无效的目标版本:1.8 [英] javac: invalid target release: 1.8

查看:190
本文介绍了javac:无效的目标版本:1.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近下载了与NetBeans捆绑在一起的JDK 1.8.0.0_06。然后我发现我在Java 1.7中开发的JavaFx项目将无法在Java 1.8中编译,因此我将JDK降低到1.7。还是我不能让它工作/编译。我收到此错误:

I recently downloaded JDK 1.8.0.0_06 that comes bundled with NetBeans. I then got to find out that my JavaFx project, that I have been developing in Java 1.7 won't compile in Java 1.8, and so I stepped down my JDK to 1.7. Still I can't get it to work/ compile. I get this error:

javac: invalid target release: 1.8
Usage: javac <options> <source files>

我真的感到困惑,非常感谢任何帮助。

I'm really stuck and would greatly appreciate any help.

推荐答案

如果你打算下台,那么你的项目源也会改为1.7,

if you are going to step down, then change your project's source to 1.7 as well,

right click on your Project -> Properties -> Sources window 

并设置 1.7 此处

注意:但是我建议你弄清楚为什么它不适用于1.8

这篇关于javac:无效的目标版本:1.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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