Closed vcvitaly closed 7 months ago
Resolved it as described here: https://stackoverflow.com/a/78171207/8587732
by adding
requires jdk.crypto.ec;
to module-info
Closing as it appears to be solved and related to other tooling in the app's ecosystem; see Stack Overflow link above.
I need some help.
I writing a JavaFX app which uses java kubernetes client https://github.com/kubernetes-client/java which in turn uses bouncyCastle.
When I run the app from Intellij everything works. However when I package the app with jlink-plugin and then run it - it fails with the error:
https://stackoverflow.com/questions/24810805/invalidkeyexception-key-spec-not-recognised answer suggests to add a security provider which I tried doing two ways with no success:
Security.addProvider(new BouncyCastleProvider());
to the main classsecurity.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider
tobuild/image/lib/security/java.security
The immportant moment is that I had to add '--ignore-signing-information' to jlink options because otherwise it was failing with:This is my build.gradle
and my module-info:
Any thougths?