JAR and WAR are both archives in the Java ecosystem, but they package different kinds of applications. Grouping APK and DLL with them simply as “files” hides their platform and role. When something fails, read the exception together with the call path in its stack trace.
Key terms
JAR, WAR, APK, and DLL differ in platform and deployment purpose.
| Term | Meaning |
|---|---|
msi | A Windows Installer package format used to distribute and install software. |
dmg | A macOS disk image commonly used to distribute software; its contents may include an app or an installer. |
jar | Java Archive: a package format for Java classes and resources, used for libraries and applications. |
war | Web Application Archive: packages a Java web application, including its classes and web resources, for a compatible runtime. |
ear | Enterprise Application Archive: packages enterprise Java application modules, which can include JAR and WAR modules. |
Terms to distinguish
| Term | Meaning |
|---|---|
apk | An Android application package format. |
ipa | An iOS application archive used for app distribution. |
library | Reusable code or resources, such as APIs, classes, and functions, that other programs can use. |
exe | A Windows executable file extension. Its ability to run depends on the executable format, system, and required dependencies. |
dll | Dynamic-link library: a Windows library file that programs can load and use at runtime. |
Terms in code
| Term | Meaning |
|---|---|
ini | A configuration-file extension often associated with Windows software. |
chm | Compiled HTML Help: a legacy Windows help-file format. |
exception | A signal of an exceptional condition during program execution. It can be raised deliberately as well as by an unexpected failure. |
exception handling | A defined flow for propagating, recovering from, cleaning up after, or safely ending work when an exception occurs. |
Stack trace | A record of the sequence of function or method calls leading to a particular point, commonly captured when an error occurs. |
Reading a technical document
JAR and WAR are both Java archives, but they have different purposes. An exception names a problem; a stack trace helps locate its call path.
When several unfamiliar terms appear at once, identify the platform or runtime first. Then separate the artifact that was distributed from the error information produced while running it.
Key takeaways
Identify the platform behind a file extension and the diagnostic information behind an error.
- msi — A Windows Installer package format.
- library — Reusable code or resources used by other programs.
- Stack trace — A record of calls leading to a point of interest, often an error.

