本文翻译自:IDEA: javac: source release 1.7 requires target release 1.7
When running a JUnit test, using IntelliJ IDEA, I get 使用IntelliJ IDEA运行JUnit测试时,我得到
How can I correct this? 我该如何纠正?
- Using SDK 1.7 使用SDK 1.7
- Module language level is 1.7 模块语言级别为1.7
Maven build works fine. Maven构建工作正常。 (That's why I believe this in IDEA configuration issue) (这就是为什么我在IDEA配置问题中相信这一点的原因)