Antonin
Antonin

Reputation: 685

Use jpackage (and jlink) with signed libraries

I have a JavaFX application that uses BouncyCastle as a dependency.
I want to produce an executable that embeds a lightweight JRE 15.
For this, I use the java jpackage tool which work on jlink. The problem is that this command does not manage signed libraries as BouncyCastle.

Indeed, I get:

jlink failed with: Error: signed modular JAR {PATH_TO_APP}\jre_jlink\libs\bcprov-jdk15on-1.67.jar is currently not supported, use --ignore-signing-information to suppress error

The option --ignore-signing-information can't be use on jlink because I don't have the control on jpackage. And if I could use this option, I wouldn't be able to use BouncyCastle in my application.

Is there a solution to package my application into a Windows executable that contains my application, the JRE and its dependencies?

Upvotes: 2

Views: 618

Answers (0)

Related Questions