opening a jar file code example Example 1: open jar file with command prompt For Linux: java -jar <filename>.jar Example 2: run jar file java -jar yourFile.jar