question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

javac: invalid target release: 11

See original GitHub issue

Any 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lolo101commented, Dec 7, 2020

Yeah, my syntax was approximative 😃 Anyway, I’m happy you could run MsgViewer. Looking forward to reading your feedback

1reaction
lolo101commented, Dec 7, 2020

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 invoking env JAVA_VERION=11+ java -version ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found