how to run a main method in java from jar file code example
Example: java execute jar from main
java -cp MyJar.jar com.packagename.MainClass [somearg1] [somearg2] [etc]
java -cp MyJar.jar com.packagename.MainClass [somearg1] [somearg2] [etc]