Project won’t build with JDK > 11
See original GitHub issueDescribe the bug
When building with OpenJDK > 11 the build fails.
Expected behaviour
The README says:
Minimum JDK Version 11
So I would expect the project to build with any JDK > 11
Steps to reproduce the issue
- Run
maven install
on OpenJDK 12
And you’ll get the following error when running the distribution module tests:
Caused by: java.lang.ClassCastException: class org.bouncycastle.asn1.pkcs.PrivateKeyInfo cannot be cast to class org.bouncycastle.openssl.PEMKeyPair (org.bouncycastle.asn1.pkcs.PrivateKeyInfo and org.bouncycastle.openssl.PEMKeyPair are in unnamed module of loader 'app')
Technical details
- Host Machine OS (Windows/Linux/Mac): MacOS
Possible Fix
- I haven’t checkt but since bouncy castle ist very common, there will certainly be a solution to it.
Additional context
This came up via #387.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Unable to compile simple Java 10 / Java 11 project with Maven
Maven make use of the environment variable JAVA_HOME to find the Java Version to run. So change this variable to the JDK you...
Read more >Unable to resolve dependency when scanning in java11 on a ...
Hi Daniel,. We require this parent dependency to build the projects that are still in jdk8 and we are not planning to migrate...
Read more >React-Native build ERROR: requires JDK11 or higher ...
This worked for me but I had to restart VS code since I am using that to run my react-native project. Only restarting...
Read more >Oracle JDK Migration Guide - Java
The purpose of this guide is to help you identify potential issues and give you suggestions on how to proceed as you migrate...
Read more >How to Change the Java Version in an IntelliJ Project | Baeldung
IntelliJ stores the JDK version used by the project within its Project ... the Project SDK won't change the JVM used for these...
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 Free
Top 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
Ok, the versions I’ve tried yet:
I think the first time I tried was a WIP branch of the JDK 14 for project loom…
So I’ll close this!
Ok, thx for the feedback. Then it looks as if there is an issue on my side. I will first check the exact version.