From edf712f42ea8ef226303a5e6ab747a7321b9b2ca Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 3 Jun 2022 09:38:30 +0200 Subject: force loading IAIK JCE at main thread startup (eliminates race condition) --- pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pdf-over-gui/src/main/java/at') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java index 1cb55800..c4832f7b 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java @@ -50,7 +50,9 @@ public class Main { if (!configDir.exists()) { configDir.mkdir(); } - + + // force loading the IAIK JCE + IAIK.addAsProvider(); StateMachineImpl stateMachine = new StateMachineImpl(args); -- cgit v1.2.3