How to Create a JAR File (From a Folder, With the jar Command)
Create a JAR from a folder with the jar command, make it executable with a Main-Class, convert an existing JAR to an executable one, or repackage online.
Before You Start: You Need Compiled Classes
Step 1: Create a Basic JAR (`jar cf`)
Step 2: Make It Executable (Add a Main-Class)
Step 3: Update an Existing JAR (`jar uf`)
Convert an Existing JAR Into an Executable JAR
No JDK? Repackage Online
Bundling Dependencies (Fat JAR)
Summary