running jar from command line 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