how can i start a class from another class? which means, i want my first class to trigger the main method inside my second class. Any advice will be appreciated Regards
posted 14 years ago
Hi, Calling main method of another from a class is possible only through invoking another JVM. Runtime r = Runtime.getRuntime(); Process p = r.exec("java classname arg"); classname = Your Classname arg = Argument for your classname if any Shiva.