javac: invalid target release: 11
See original GitHub issueAny pointers what can be done to fix that ?
[INFO] parent ............................................. SUCCESS [ 0.002 s]
[INFO] FrameWorkMinimized ................................. FAILURE [ 14.787 s]
....
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project FrameWorkMinimized: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
javac: invalid target release: 11
Usage: javac <options> <source files>
use -help for a list of possible options
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Maven error - invalid target release: 1.11 - Mkyong.com
Solution. For maven-compiler-plugin , the correct JDK version is 1.8, 1.9, 1.10, 10, 11, 12 .
Read more >invalid target release: 11 Error when using Java 11 #243
Run ./mvnw compile to compile the Data Class with @DataObject(generateConverter = true) the error invalid target release: 11 occurs. The module- ...
Read more >Error: Java: invalid target release: 11 - IntelliJ IDEA
Go to, File -> Project Structure -> Modules. Here, in Source tab, you can see Language level option, choose 8 - Lambdas, type...
Read more >Fix Maven Build Error invalid target release - CodeJava.net
The error is invalid target release: 17 - that means the project's Java version is 17 but Maven is running under lower JDK...
Read more >Maven build fail: Fatal error compiling: invalid target release: 11
I've created a new Java project using Java 11. Set up the pipeline (using the pipeline template Set up Maven pipleline to build...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, my syntax was approximative 😃 Anyway, I’m happy you could run MsgViewer. Looking forward to reading your feedback
Hi @grahamperrin !
I’m not used to FreeBSD but according to this https://www.freebsd.org/cgi/man.cgi?query=javavm&sektion=&manpath=freebsd-release-ports you can have different Java versions installed simultaneously. All you would have to do is specifying which version you want to use with
env JAVA_VERSION=11+
Note there was a bug with java version > 1.9 that was fixed one year ago : https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237054 Could you try invokingenv JAVA_VERION=11+ java -version
?