使用-source 7或更高版本 [英] use -source 7 or higher
本文介绍了使用-source 7或更高版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试使用intelliJ Ultimate 12构建项目时,我收到这些错误
While trying to build a project using intelliJ Ultimate 12 I am getting these errors
use -source or higher to enable diamond operator
use -source 7 or higher to enable multi-catch statement
我使用了相同的代码与其他系统上的相同的intelliJ Ultimate 12及其在那里工作正常。我想知道我需要在IDE中设置哪些配置来修复这些构建问题?
I used the same code with same intelliJ Ultimate 12 on some other system and its working fine there. I want to know what configurations I need to set in my IDE to fix these build issues?
推荐答案
项目的语言级别在项目结构对话框中设置:
你想确定您将语言级别设置为java 7,并相应地设置sdk
the language level for a project is set in the project structure dialog: you want to make sure you set the language level to java 7, and the sdk accordingly
这篇关于使用-source 7或更高版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文