From 2e0e187ffc9d1deeaad97d4261ead1058ee13a43 Mon Sep 17 00:00:00 2001 From: Gravit Date: Tue, 23 Oct 2018 19:59:39 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BE=D0=BF=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20nativePath?= =?UTF-8?q?=20=D0=B2=20PublicURLClassLoader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/ru/gravit/utils/PublicURLClassLoader.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libLauncher/src/main/java/ru/gravit/utils/PublicURLClassLoader.java b/libLauncher/src/main/java/ru/gravit/utils/PublicURLClassLoader.java index 13291388..b0b7dd34 100644 --- a/libLauncher/src/main/java/ru/gravit/utils/PublicURLClassLoader.java +++ b/libLauncher/src/main/java/ru/gravit/utils/PublicURLClassLoader.java @@ -8,7 +8,7 @@ public class PublicURLClassLoader extends URLClassLoader { @LauncherAPI public static ClassLoader systemclassloader = ClassLoader.getSystemClassLoader(); - + public String nativePath; @LauncherAPI public static ClassLoader getSystemClassLoader() { return systemclassloader; @@ -62,6 +62,11 @@ public PublicURLClassLoader(URL[] urls) { public PublicURLClassLoader(URL[] urls, ClassLoader parent) { super(urls, parent); } + @Override + public String findLibrary(String name) + { + return nativePath.concat(name); + } @Override public void addURL(URL url) {