run jar files from terminal code example Example 1: run jar file command line Click to copyjava -jar <jar-file-name>.jar Example 2: run jar file Click to copyjava -jar yourFile.jar