I need to call the main method of a Java class from another main method using reflection.
Usage of reflection is a must so as to remove compile time dependency of the ma
If you have 2 java files that both have the main method, can't you compile them as different projects and call one from the other?