From a0b7f09252b234e4a9f514201a8c1714363ee029 Mon Sep 17 00:00:00 2001 From: Janmm14 Date: Tue, 18 May 2021 10:34:53 +0000 Subject: [PATCH] #3087: Force-enable multi-release jar file support for JDK9+ via System property --- proxy/src/main/java/net/md_5/bungee/BungeeCordLauncher.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCordLauncher.java b/proxy/src/main/java/net/md_5/bungee/BungeeCordLauncher.java index 01ec0cae..7281d6b2 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCordLauncher.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCordLauncher.java @@ -20,6 +20,11 @@ public class BungeeCordLauncher { Security.setProperty( "networkaddress.cache.ttl", "30" ); Security.setProperty( "networkaddress.cache.negative.ttl", "10" ); + // For JDK9+ we force-enable multi-release jar file support #3087 + if ( System.getProperty( "jdk.util.jar.enableMultiRelease" ) == null ) + { + System.setProperty( "jdk.util.jar.enableMultiRelease", "force" ); + } OptionParser parser = new OptionParser(); parser.allowsUnrecognizedOptions();