IntelliJ: Error: java: release version 10 not supported

后端 未结 13 1962
甜味超标
甜味超标 2020-12-24 01:45

In IntelliJ, I\'m getting this strange error message when I try to build from the build menu

Error: java: release version 10 not supported

13条回答
  •  我在风中等你
    2020-12-24 02:15

    At first, Put this code in your pom.xml

    
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                Current Latest Version of Maven e.g. 3.8.1
                
                    Java Version installed in your system e.g. 13
                    Java Version installed in your system e.g. 13
                    Java Version installed in your system e.g. 13
                
            
        
    
    

    And Also Go to File> Settings > Build, Execution, Deployment > Compiler> Java Compiler and change "Project bytecode version" to Java Version installed in your system e.g. 13

提交回复
热议问题