t**i 发帖数: 9 | 1 Is there a way to call the main method of a class from another class?
Thanks! |
e***g 发帖数: 158 | 2 it's just a normal static method
【在 t**i 的大作中提到】 : Is there a way to call the main method of a class from another class? : Thanks!
|
t**i 发帖数: 9 | 3 I know it's a normal static method. But I want to modify a system property
then call the main method, and I can't modify the class which has the main
method. What're your thoughts now?
【在 e***g 的大作中提到】 : it's just a normal static method
|
e***g 发帖数: 158 | 4 System.setProperty(..);
TheClass.main(..);
【在 t**i 的大作中提到】 : I know it's a normal static method. But I want to modify a system property : then call the main method, and I can't modify the class which has the main : method. What're your thoughts now?
|