How to Run a Specific Class Inside of a JAR
My friend wanted me to test out his program, but it didn’t have a main class specified in the manifest. Here’s the solution:
java -cp yourjar.jar com.yourpackage.YourClass
This will run the specified class as the main class.