IntelliJ IDEA tells me “Error:java: Compilation failed: internal java compiler error idea”

前端 未结 12 913
梦谈多话
梦谈多话 2020-12-13 08:17

When I compile a Java project using IntelliJ IDEA, it gives me the following output (and error):

Information:Eclipse compiler 4.6.2 was used to compile java          


        
12条回答
  •  时光说笑
    2020-12-13 08:59

    1. On Intellij IDEA Ctrl + Alt + S to open settings.
    2. Build, Execution, Deployment -> Compiler -> Java Compiler
    3. choose your java version from Project bytecode version
    4. Uncheck Use compiler from module target JDK when possible
    5. click apply and ok.

提交回复
热议问题