diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java b/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java index 0c2079d9..a8e858b4 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServerStarter.java @@ -61,7 +61,13 @@ public static void main(String[] args) throws Exception { Path privateKeyFile = dir.resolve("private.key"); ECPublicKey publicKey; ECPrivateKey privateKey; - Security.addProvider(new BouncyCastleProvider()); + try { + Class.forName("org.bouncycastle.jce.provider.BouncyCastleProvider"); + Security.addProvider(new BouncyCastleProvider()); + } catch (ClassNotFoundException ex) { + LogHelper.error("Library BouncyCastle not found! Is directory 'libraries' empty?"); + return; + } CertificateManager certificateManager = new CertificateManager(); try { certificateManager.readTrustStore(dir.resolve("truststore"));