I have a jar which contain two main class Class A and Class B. In the manifest i have mentioned Class A . Now i have to execute classB from the same jar . what should be the
This will do the job: java -classpath yourjar.jar youpackage.B
java -classpath yourjar.jar youpackage.B