Difference between JAR, Fat JAR, Executable JAR
Asked Answered
P

1

6

What are the differences between JAR, Fat JAR and Executable JAR? How are they created from command line and gradle.build task(in case of gradle project)?

Are there any other JARs apart from above mentioned?

Paleography answered 10/2, 2019 at 11:47 Comment(3)
duplicate of two questions https://mcmap.net/q/48039/-what-is-a-fat-jar-duplicate and #5258659Organization
Possible duplicate of What is a fat JAR?Organization
Possible duplicate of How to make an executable jar file?Garpike
H
7

They're just ways of packaging the java apps.

Skinny – Contains ONLY the bits you literally type into your code editor, and NOTHING else.

Thin – Contains all of the above PLUS the app’s direct dependencies of your app (db drivers, utility libraries, etc).

Hollow – The inverse of Thin – Contains only the bits needed to run your app but does NOT contain the app itself. Basically a pre-packaged “app server” to which you can later deploy your app, in the same style as traditional Java EE app servers, but with important differences.

Fat/Uber – Contains the bit you literally write yourself PLUS the direct dependencies of your app PLUS the bits needed to run your app “on its own”.

Source: Article from Dzone

Handspring answered 10/2, 2019 at 12:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.