how to open a jar file on mac terminal code example Example: how to run jar file mac java -jar <filename>.jar