.jar Java archive
Archives & packages
| MIME type | application/java-archive |
|---|---|
| Description | Java archive |
| Category | Archives & packages |
| Based on | application/zip |
Frequently asked questions
What is a .jar file?
A .jar file is a “Java archive” (MIME type application/java-archive).
How do I open a .jar file?
With an archive tool such as 7-Zip (Windows) or the built-in archive manager on macOS or Linux. On the command line, use tar, unzip or 7z depending on the format.
How can you tell a genuine .jar file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.jar shows the guessed type.
Which format is .jar based on?
Technically a .jar file is a subtype of “Zip archive” (application/zip), so programs for that base format can often read it too.
Which MIME type belongs to .jar?
The MIME type is application/java-archive. In the Apache web server: AddType application/java-archive .jar; in nginx: types { application/java-archive jar; }.