What is the difference between war and jar in Java?

Asked 1 years ago, Updated 1 years ago, 82 views

What is the difference between a .jar file and a .war file in Java? Is the extension different? Is there any other difference?

java war jar

2022-09-21 23:17

1 Answers

java archive Jar compression compresses and supports java files so that one application function is possible. As I informed you before, users who use distributed jar files will be able to maintain paths such as paths You can escape the path problem. For example, ojdbc14.jar, servlet-api.You can say jar, etc.

web archive Unlike jar, war is a compression method to support web applications. To support web applications, the war compression method compresses and supports jsp, servlet, gif, html, jar, etc This means that it packages all related files for servlet context access in the same context as jar.

in addition enterprise archive A unit for deployment on a physical server beyond one Web application unit. For this purpose, Jar and war are tied together to support each function. Jar is said to be an application layer.) War is said to be a web layer.) It's about supporting.


2022-09-21 23:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.