how to open a command line on opening a jar file code example Example: open jar file with command prompt For Linux: java -jar <filename>.jar