Must set the thread context classloader when invoking direct.
This commit is contained in:
@@ -1048,6 +1048,7 @@ public class Application
|
|||||||
System.setProperty("applet", "true");
|
System.setProperty("applet", "true");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Thread.currentThread().setContextClassLoader(loader);
|
||||||
Class<?> appclass = loader.loadClass(_class);
|
Class<?> appclass = loader.loadClass(_class);
|
||||||
String[] args = _appargs.toArray(new String[_appargs.size()]);
|
String[] args = _appargs.toArray(new String[_appargs.size()]);
|
||||||
Method main;
|
Method main;
|
||||||
|
|||||||
Reference in New Issue
Block a user