mvn:Fatal error compiling: error: release version 17 not supported
- User
mvn:Fatal error compiling: error: release version 17 not supported
- Assistant
The error message typically indicates that the Java Development Kit (JDK) you're using doesn't support Java 17. This can happen if:
- User
--- maven-clean-plugin:3.2.0:clean (default-clean) @ MyTube --- [INFO] Deleting /run/media/philip/bd0812f2-6d94-4fdd-83d6-0b09ca3b4549/Downloads/my-tube-main/target [INFO] [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ MyTube --- [INFO] Copying 0 resource from src/main/resources to target/classes [INFO] Copying 44 resources from src/main/resources to target/classes [INFO] [INFO] --- maven-compiler-plugin:3.11.0:compile (default-compile) @ MyTube --- [INFO] Changes detected - recompiling the module! :source [INFO] Compiling 112 source files with javac [debug release 17] to target/classes [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.327 s [INFO] Finished at: 2024-08-24T16:08:23+03:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project MyTube: Fatal error compiling: error: release version 17 not supported -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1]
- Assistant
- User
- Assistant