J
jerry
Code:
Class[] argTypes = { String[].class };
java.lang.reflect.Method method =
ClassLoader.getSystemClassLoader().loadClass(className).getDeclaredMethod("main",
argTypes);
Object[] args = { new String[0] };
method.invoke(null, args);
what is wrong with this code? i have a java application (JPanel) and
it work as a main window and then, im trying to launch a java
application (JFrame) but when i close the JFrame window, the main
window also terminated.
is somebody know this?
thanks.