ApplicationBinary

application/java-archive

Java Archive (JAR)

Reference for application/java-archive, the MIME type for Java JAR files containing compiled classes and resources.

MIME Type Detector

Drop a file to detect its MIME type — no upload, runs in your browser

📄

Drop any file here or click to choose

Expected extensions: .jar, .war, .ear

HTTP Content-Type Header

HTTP Header
Content-Type: application/java-archive

Associated File Extensions

.jar.war.ear

Quick Facts

MIME Typeapplication/java-archive
CategoryApplication
TypeBinary
Extensions.jar, .war, .ear

Common Usage

JAR files package compiled Java classes, resources, and metadata into a single ZIP-based archive. They are used for distributing Java libraries and applications, deploying web applications (WAR), enterprise applications (EAR), and managing dependencies in Maven and Gradle projects.

Code Examples

HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.jar" type="application/java-archive">

<!-- Or for script/media elements -->
<script type="application/java-archive" src="file.jar"></script>
Node.js
// Express.js
app.get('/file', (req, res) => {
  res.type('application/java-archive');
  res.send(data);
});

// Node.js http
res.writeHead(200, { 'Content-Type': 'application/java-archive' });
nginx
# nginx.conf — add to types block or use default
types {
    application/java-archive  jar war ear;
}

# Or set for a specific location
location /api/ {
    default_type application/java-archive;
}

Related MIME Types

More Application MIME Types

Other application types in the Application family

Related Tools

Explore More MIME Types

Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.