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.

Project won’t build with JDK > 11

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
jwedelcommented, May 31, 2020

Ok, the versions I’ve tried yet:

  • OpenJDK 12.0.1 ❌
  • OpenJDK 12.0.2 ✅
  • OpenJDK 14.0.1 ✅

I think the first time I tried was a WIP branch of the JDK 14 for project loom…

So I’ll close this!

0reactions
jwedelcommented, May 31, 2020

Ok, thx for the feedback. Then it looks as if there is an issue on my side. I will first check the exact version.

Read more comments on GitHub >

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

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