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.Application

Related terms

Taught in

References

Certification courses