can't open jar files with java code example Example 1: open jar file linux java -jar filename.jar Example 2: run jar file java -jar yourFile.jar