IntelliJ IDEA Java compiler appears 'Error: java: Invalid source distributions: 9' solutions to [Reserved]
Newly installed IntelliJ IDEA 2018.1 compiler, create a Java Project, the installed JDK Eclipse and select the previously configured, as shown:
Add in the project Main.class, main function, write simple code, and then run, an error occurs as shown:
Through an online search solutions, ultimately summed up the reasons:
Open 'File-> Project Structure'
Select Modules -> Sources, Language level into the other, for example, in the present embodiment into 8
If still unsuccessful, the sign continues to page selection Project Structure Project, and Project language level is modified to 8, as shown:
Then you can run the program a success
Reprinted address: https: //www.cnblogs.com/dongling/p/8670852.html
Newly installed IntelliJ IDEA 2018.1 compiler, create a Java Project, the installed JDK Eclipse and select the previously configured, as shown:
Add in the project Main.class, main function, write simple code, and then run, an error occurs as shown:
Through an online search solutions, ultimately summed up the reasons:
Open 'File-> Project Structure'
Select Modules -> Sources, Language level into the other, for example, in the present embodiment into 8
If still unsuccessful, the sign continues to page selection Project Structure Project, and Project language level is modified to 8, as shown:
Then you can run the program a success