fixed issue with URL stream handler

This commit is contained in:
2022-08-05 15:13:42 +08:00
parent 3f4c5f52e8
commit 40bd8e71bd
7 changed files with 26 additions and 7 deletions

View File

@@ -59,6 +59,7 @@ public class Launcher {
@SneakyThrows
public static void main(String[] args) {
Enumeration<URL> it = Launcher.class.getClassLoader().getResources(Constants.SYSTEM_PROPERTIES_FILE);
JarFile.registerUrlProtocolHandler();
while (it.hasMoreElements()) {
URL url = it.nextElement();
Properties properties = new Properties();