JAR file
A JAR (Java Archive) is a ZIP-based file format that packages Java classes, resources, and metadata for distribution or execution.
Spring in Action, Sixth Edition
A JAR file is a Java Archive that packages compiled classes, resources, and metadata for distribution or execution.
- How it is used
- Packages Spring Boot applications for local execution and production deployment.
- How deep it goes
- Explains build, execution, and deployment steps, including dependencies and the manifest, without detailing the archive’s internal layout.
- Examples
- Uses Taco Cloud to demonstrate Maven packaging, command-line execution, and a Cloud Foundry push.
- What you can do after
- Apply it via Maven or Gradle to build an executable JAR, run it, and deploy it to Cloud Foundry.
Read how Spring in Action, Sixth Edition explains JAR file →
Fast by Default
A JAR file is a ZIP-based Java archive that packages class files, resources, metadata, and optionally dependencies.
- How it is used
- Supports build-time dependency analysis and application-size reduction.
- How deep it goes
- Explains dependency contents, size inspection, transitive paths, unused declarations, reflection, and native binaries.
- Examples
- Uses Gradle dependency reports, Maven dependency commands, Spring Boot archive listings, jdeps, and the Nebula Lint plugin.
- What you can do after
- Diagnose oversized JARs and choose lighter dependencies or platform-specific native packages.
Also covered in
- Refactoring to Rust
- Learn Docker in a Month of Lunches, Second Edition
- Quarkus in Action
- Akka in Action, Second Edition
Related concepts
- Apache Tomcathas part · Apache Tomcat is an open-source Java web server and servlet container for running Java web applications.
- Mavenproduced by · Apache Maven is a build automation and project management tool that manages dependencies and build lifecycles, especially for Java and other JVM projects.
Questions about JAR file
What is JAR file?
A JAR (Java Archive) is a ZIP-based file format that packages Java classes, resources, and metadata for distribution or execution.
Which Manning books explain JAR file?
Spring in Action, Sixth Edition and Fast by Default.
What should I know before learning JAR file?
Manning books that teach JAR file usually introduce Java first.
What are the parts of JAR file?
JAR file includes Apache Tomcat.
What is JAR file also called?
JAR file is also called Java archive.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

