To make a jar file on Mac just first need to open up the Terminal window.
1. Go to the directory of where your java file is by entering
2. Compile your java file(myJava.java) into a class
List the content of the directory to make your the class file has been made
3. To indicate which function to run first in the jar file we will need to create a text file (MainClass.txt) with the content in the same directory as the java file:
4. The last command to create the actual jar file looks like this:
5. Run your jar file! You can run it by clicking on it or by entering the follwoing command in the Terminal window





