execute jar java code example
Example 1: java execute jar from main
java -cp MyJar.jar com.packagename.MainClass [somearg1] [somearg2] [etc]
Example 2: run jar file
java -jar yourFile.jar
java -cp MyJar.jar com.packagename.MainClass [somearg1] [somearg2] [etc]
java -jar yourFile.jar