how to run a jar file from terminal windows code example
Example 1: command to run jar file linux
java -jar filex.jar
Example 2: how to run jar file mac
java -jar <filename>.jar
java -jar filex.jar
java -jar <filename>.jar