JAR manifest
The text file inside a JAR, stored in its META-INF folder, that records metadata such as the main class to run.
In more detail
java -jar reads the Main-Class entry to know where to start. The META-INF folder can also hold other metadata such as build information. You rarely edit a manifest by hand; build tools write it.
Example
Main-Class: com.example.ApplicationRelated terms
- JAR file — A zip archive holding compiled classes and resources, plus a manifest describing them, which the JVM can load directly.
- jar tool — The JDK command that creates, lists and extracts JAR files, like a zip tool that understands manifests.
Taught in
- The Toolchain: Maven — Modern Java: Virtual Threads & High-Throughput Services
- Jars, Automatic Modules And Runtime Images — Oracle Certified Professional: Java SE 21 Developer (1Z0-830) Exam Prep