Home > Software engineering >  IntelliJ throwing "java: error: option -source cannot be used together with --release"
IntelliJ throwing "java: error: option -source cannot be used together with --release"

Time:09-21

IntelliJ is throwing "java: error: option -source cannot be used together with --release" when trying to run ScalaTests.

Note: Using the bundled JRE and IntelliJ Idea 2021.2.2.

CodePudding user response:

Disable the --release compiler option in Settings | Build, Execution, Deployment | Compiler | Java Compiler.

  • Related