Don't assume a specific system class loader.

The issue was encountered using Oracle JDK9 on Debian stretch arm64.
This commit is contained in:
Daniel Ruthardt 2018-01-16 21:10:17 -06:00 committed by Tobi Schäfer
parent fcb01e21cd
commit 78ccdfced9

View file

@ -216,12 +216,10 @@ public class Main {
}
}
URLClassLoader apploader = (URLClassLoader)
ClassLoader.getSystemClassLoader();
// try to get Helma installation directory
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
// jar:<url>!/{entry}