Report useful bits to launcher.log when invoking direct.
This commit is contained in:
@@ -1016,6 +1016,10 @@ public class Application
|
|||||||
return perms;
|
return perms;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Thread.currentThread().setContextClassLoader(loader);
|
||||||
|
|
||||||
|
log.info("Configured URL class loader:");
|
||||||
|
for (URL url : jars) log.info(" " + url);
|
||||||
|
|
||||||
// configure any system properties that we can
|
// configure any system properties that we can
|
||||||
for (String jvmarg : _jvmargs) {
|
for (String jvmarg : _jvmargs) {
|
||||||
@@ -1048,16 +1052,18 @@ public class Application
|
|||||||
System.setProperty("applet", "true");
|
System.setProperty("applet", "true");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Thread.currentThread().setContextClassLoader(loader);
|
log.info("Loading " + _class);
|
||||||
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;
|
||||||
try {
|
try {
|
||||||
// first see if the class has a special applet-aware main
|
// first see if the class has a special applet-aware main
|
||||||
main = appclass.getMethod("main", JApplet.class, SA_PROTO.getClass());
|
main = appclass.getMethod("main", JApplet.class, SA_PROTO.getClass());
|
||||||
|
log.info("Invoking main(JApplet,String[]) with args: " + _appargs);
|
||||||
main.invoke(null, new Object[] { applet, args });
|
main.invoke(null, new Object[] { applet, args });
|
||||||
} catch (NoSuchMethodException nsme) {
|
} catch (NoSuchMethodException nsme) {
|
||||||
main = appclass.getMethod("main", SA_PROTO.getClass());
|
main = appclass.getMethod("main", SA_PROTO.getClass());
|
||||||
|
log.info("Invoking main(String[]) with args: " + _appargs);
|
||||||
main.invoke(null, new Object[] { args });
|
main.invoke(null, new Object[] { args });
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user