I have a jar file having 2 java classes both having Main methods. Is there a way I can specify while running the jar file, which class to call ? I know that manifest file can be modified to specify the Main class but since only one class can be mentioned, that does not help. I checked the below links, but those dint solve the problem:
manifest-file execute a main class from a jar
It gives NoClassDefFoundError.