how to open java file as jar file on cmd code example Example: run jar file command line java -jar <jar-file-name>.jar