Jar and war difference (when each one is used)

Asked 2 years ago, Updated 2 years ago, 93 views

Jar files, Java classes, etc. can be compressed in war Is it necessary to use jar? Can't we just compress everything into war?

I don't know when to use war and jar respectively (crying) If it's just a Java file, is it war except Jar?

jar war

2022-09-22 18:38

1 Answers

You can think of JAR as a general adaptation or library written as Java Archive.

WAR is a Web application ARchive, which is basically a web application written in Java. You can think of it as a specialized version of JAR's web application. In fact, it contains other languages besides Java.

See https://en.wikipedia.org/wiki/WAR_(file_format).


2022-09-22 18:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.