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