Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
193 views
in Technique[技术] by (71.8m points)

java - use -source 7 or higher

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

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?

question from:https://stackoverflow.com/questions/14659554/use-source-7-or-higher

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

the language level for a project is set in the project structure dialog: project structure dialog you want to make sure you set the language level to java 7, and the sdk accordingly


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...