how to run java program from jar file code example
Example 1: run jar file command line
java -jar <jar-file-name>.jar
Example 2: how to run module jar file in java
javac -d out --module-source-path src/main/java --module com.jenkov.mymodule
java -jar <jar-file-name>.jar
javac -d out --module-source-path src/main/java --module com.jenkov.mymodule