1. Compile Java Source Code
    • Use javac to compile your .java files into .class files.
  2. Package into a JAR File
    • Use the jar command to package your compiled classes and resources into a JAR file jar cf example.jar -C <path-to-compiled-classes> .
    • This results in a JAR file named example containing the contents of the specified directory
  3. Execute
    • Run your application JAR with java -jar example.jar