how to run jar file inside java program code example
Example 1: java execute jar from main
java -cp MyJar.jar com.packagename.MainClass [somearg1] [somearg2] [etc]
Example 2: how to run module jar file in java
javac -d out --module-source-path src/main/java --module com.jenkov.mymodule