.EAR

EAR File

Java Enterprise Archive
Ask a question
QUICK ANSWER

An EAR (Enterprise Archive) file is a ZIP-based package that bundles a complete Java enterprise application -- web modules, EJB business logic, and shared libraries -- for deployment to a Jakarta EE server such as WildFly or GlassFish. You do not open it like a document; you deploy it to an application server. To inspect the contents without deploying, rename it to .zip and open with 7-Zip.

Developer: Sun Microsystems (now Oracle); part of the J2EE/Jakarta EE specification Category: Executable Files Open standard MIME: application/java-archive
OPENS ON Windows macOS Linux
Related: .APK · .EXE · .VBS · .JAR

On this page

19k+ extensions indexed
Last reviewed Aug 22, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the EAR file format?

An .ear file is the top-level packaging unit for Java enterprise applications, defined by the J2EE specification (now Jakarta EE) since its 1.2 release in December 1999. Structurally it is a ZIP archive, sharing the PK magic bytes 50 4B 03 04, that bundles together web modules (.war), EJB modules (.jar), resource-adapter modules (.rar), and application client JARs into one deployable artifact.

The mandatory META-INF/application.xml deployment descriptor identifies the archive as an EAR and declares which sub-modules it contains. Per-entry compression uses DEFLATE; individual entries may also be stored uncompressed. Because the container is standard ZIP, renaming the file to .zip and opening it with any archive manager exposes all internal structure.

EAR files are deployed to full Jakarta EE application servers - WildFly (JBoss), Eclipse GlassFish, IBM WebSphere, and Oracle WebLogic being the most common targets. Modern microservice architectures favor executable fat-JAR files or container images over EARs, but EAR deployment remains the standard for full Jakarta EE workloads and large legacy Java EE applications. The underlying ZIP-based layout has been stable since the original J2EE 1.2 specification; versioning is expressed through application.xml namespace declarations.

Security & safety

RISK: MEDIUM

An EAR contains executable server-side code that runs on the application server with that server's privileges. Deploy only EARs from trusted sources. A malicious EAR can contain web shells, backdoored EJBs, or exploit vulnerable bundled libraries. Inspect contents with 7-Zip before deploying an untrusted EAR. Keep the application server and bundled libraries patched.

Format details

in a nutshell
FULL NAMEJava Enterprise Archiveaka EAR file, J2EE Enterprise Archive
DEVELOPERSun Microsystems (now Oracle); part of the J2EE/Jakarta EE specificationsince 1999 (J2EE 1.2 specification)
MIME TYPEapplication/java-archive
TYPEZIP-based Java enterprise application package (binary); sibling of JAR and WAR
STANDARDOpen · royalty-free
This extension is also used by…
  • Audacity audio file - Some older Audacity sessions may be exported with .ear; entirely unrelated to Java EE.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
504B0304
ASCII
PK··
An EAR is a ZIP archive (same as JAR/WAR); distinguish by internal META-INF/application.xml deployment descriptor and presence of .war/.jar/.rar sub-modules.

Programs that open EAR files

Windows4 apps
7-Zip Open-source Right-click > 7-Zip > Open archive to inspect WARs, EJB JARs, and deployment descriptors - does not deploy/run the EAR.
Apache Geronimo Open-source Geronimo Application Server no longer actively maintained; use Apache TomEE or WildFly for new deployments.
Eclipse GlassFish Open-source Deploy via Admin Console or CLI: asadmin deploy app.ear. Active development continues under Eclipse Foundation (v8.0.0, Feb 2026).
WildFly (JBoss) Open-source Drop the .ear into WildFly's standalone/deployments/ directory or use the management console. Actively maintained.
macOS2 apps
Eclipse GlassFish Open-source asadmin deploy app.ear - same as Linux; runs on macOS JVM.
WildFly (JBoss) Open-source Deploy via standalone/deployments/ or CLI management.
Linux3 apps
Apache Geronimo Open-source Application server; no longer actively maintained - consider Apache TomEE/WildFly instead.
Eclipse GlassFish Open-source asadmin deploy app.ear - deploys and starts the enterprise application.
WildFly (JBoss) Open-source Copy .ear to standalone/deployments/ for hot-deploy, or use CLI: deploy app.ear.

Technical details

deep spec
Container formatZIP archive (same `50 4B 03 04` magic bytes as `.zip` and `.jar`)
Byte orderLittle-endian (ZIP format)
CompressionDEFLATE per entry; STORED also permitted for individual entries
Mandatory descriptor`META-INF/application.xml` - identifies the EAR and declares its sub-modules
Sub-module types`.war` (web), EJB `.jar` (enterprise beans), `.rar` (resource adapters), application client `.jar`
Version declaration`application.xml` XML namespace URI identifies J2EE 1.x / Java EE 5-8 / Jakarta EE 8-11 version
Integrity checkZIP per-entry CRC-32; optional JAR code signing via `META-INF/` signature blocks
Max entries65,535 (standard ZIP); unlimited with ZIP64 extension
Typical file size5 MB - 500 MB
MIME type`application/java-archive`
Inspection methodRename to `.zip` to browse all contents with any archive manager (e.g. 7-Zip)
Deployment targetsWildFly, Eclipse GlassFish, IBM WebSphere, Oracle WebLogic
Released1999 (J2EE 1.2 specification)
Latest versionTracks Jakarta EE specification (Jakarta EE 11, 2024); EAR layout itself is stable
Open standardYes · royalty-free
Specificationjakarta.ee

EAR conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with EAR files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about EAR files.

Frequently asked questions

How do I open or run an EAR file?
Deploy it to a Jakarta EE application server: WildFly (drop into standalone/deployments/) or GlassFish (asadmin deploy app.ear). To inspect the contents, rename to .zip and open with 7-Zip.
What is the difference between EAR, WAR, and JAR?
JAR packages Java libraries or standalone apps; WAR packages a web application (servlets/JSP); EAR packages a full enterprise application bundling multiple WARs and EJB JARs. All three are ZIP-based.
Can I open an EAR file with 7-Zip?
Yes for inspection - 7-Zip sees it as a ZIP and lets you browse WARs, EJB JARs, and deployment descriptors. To actually run it you need an application server.
Is Apache Geronimo still a good choice?
Geronimo Application Server is no longer actively developed. Use Apache TomEE, WildFly, or Eclipse GlassFish for new deployments.
Can I convert an EAR to a Docker image?
Not a file conversion. You build a Docker image that includes a Jakarta EE server (WildFly, GlassFish) and copy the .ear into it at the server's auto-deploy path - common in modern CI/CD pipelines.

References

1Oracle J2EE - About J2EE Archive Formatsdownload.oracle.com
2Jakarta EE - Enterprise Beans specificationjakarta.ee

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.NOMEDIAAndroid No-Media Marker File
6.PARTPartial Download File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.DBSQLite Database File

Related extensions

.APKAndroid Package
.EXEWindows Executable (Portable Executable)
.VBSVBScript file (Visual Basic Script)
.JARJava Archive
.EX4MetaTrader 4 Compiled Program (Expert Advisor / Indicator / Script)
.APPXMicrosoft Windows App Package (AppX)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z