Is there a way to call the main method of a class from another class? Thanks!
e*g
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
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
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?