java:types-of-jar-files
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
java:types-of-jar-files [2023/07/06 16:52] – odefta | java:types-of-jar-files [2023/07/06 16:52] (current) – odefta | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Types of jars in java ====== | ====== Types of jars in java ====== | ||
- | - **Regular (or Non-Uber) JARs**: These JAR files contain only the .class files (compiled Java bytecode) of your application. | + | - **Regular (or Non-Uber) JARs**: These JAR files contain only the .class files (compiled Java bytecode) of your application. They do not include the .class files for any libraries your application uses. This requires that all libraries used by your application are available on the classpath when your JAR is run. |
- **Thin JARs**: In a thin JAR, dependencies are not packaged inside the JAR. Instead, a lib directory is usually provided alongside the JAR, containing all necessary dependencies. The JAR file includes a Class-Path entry in the manifest file, which references the dependent JARs. | - **Thin JARs**: In a thin JAR, dependencies are not packaged inside the JAR. Instead, a lib directory is usually provided alongside the JAR, containing all necessary dependencies. The JAR file includes a Class-Path entry in the manifest file, which references the dependent JARs. | ||
- **Uber (or Fat) JARs**: These JARs contain not only the .class files for your application, | - **Uber (or Fat) JARs**: These JARs contain not only the .class files for your application, |
java/types-of-jar-files.1688651552.txt.gz · Last modified: 2023/07/06 16:52 by odefta