how to execute java files using "java -jar" macbook code example Example: how to run jar file mac java -jar <filename>.jar