summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-06-03 09:38:30 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-06-03 09:38:49 +0200
commitedf712f42ea8ef226303a5e6ab747a7321b9b2ca (patch)
tree181075752f224b65fd2b85a786425b9f53ef6d08 /pdf-over-gui/src
parent1b3533d707f9460a3f4e458677a9ff2df77badd2 (diff)
downloadpdf-over-edf712f42ea8ef226303a5e6ab747a7321b9b2ca.tar.gz
pdf-over-edf712f42ea8ef226303a5e6ab747a7321b9b2ca.tar.bz2
pdf-over-edf712f42ea8ef226303a5e6ab747a7321b9b2ca.zip
force loading IAIK JCE at main thread startup (eliminates race condition)
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java4
1 files changed, 3 insertions, 1 deletions
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);