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?
In the Java Control Panel, click on the Java tab. Verify that the latest Java Runtime version is enabled by checking the Enabled box. Click OK in Java Control Panel window to confirm changes and close the window. Try to run same applet and verify it is now running using latest version of Java installed in your system.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With