how to run jar file terminal code example Example 1: open jar file linux java -jar filename.jar Example 2: run jar file command line java -jar <jar-file-name>.jar