Don't assume a specific system class loader.
The issue was encountered using Oracle JDK9 on Debian stretch arm64.
This commit is contained in:
parent
fcb01e21cd
commit
78ccdfced9
1 changed files with 2 additions and 4 deletions
|
@ -216,12 +216,10 @@ public class Main {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
URLClassLoader apploader = (URLClassLoader)
|
|
||||||
ClassLoader.getSystemClassLoader();
|
|
||||||
|
|
||||||
// try to get Helma installation directory
|
// try to get Helma installation directory
|
||||||
if (installDir == null) {
|
if (installDir == null) {
|
||||||
URL launcherUrl = apploader.findResource("helma/main/launcher/Main.class");
|
URL launcherUrl = ClassLoader.getSystemClassLoader()
|
||||||
|
.getResource("helma/main/launcher/Main.class"); //$NON-NLS-1$
|
||||||
|
|
||||||
// this is a JAR URL of the form
|
// this is a JAR URL of the form
|
||||||
// jar:<url>!/{entry}
|
// jar:<url>!/{entry}
|
||||||
|
|
Loading…
Add table
Reference in a new issue