Hi Allπ I hope you all are doing well. I'm writing after a long time. Earlier I used to write articles which were mostly related to front-end development now I'll be writing Java articles , I'll try to publish one article a week, these articles will be beginner friendly and gradually I'll take up these articles from zero to my best.
Note to self :-
Writing one java blog a week will help me keep revising Java.
Let's begin...
Java Application Distribution
Let's start with Java application distribution. The simplest Java applications can be composed of 10 or more independent Java files. You can make software development easier with many files with specific responsibilities, but it complicates application deployment. For deployment purpose Java application are delivered and reside in Archive Files. There are 4 types of Java Archive files they are targeted toward different environments and they can help simplify your Java application deployment time -
- JAR (Java Archive)
- WAR (Web Application Archive)
- EAR (Enterprise Application Archive)
- RAR (Resource Adapter Archive)
JAR (Java Archive) :- These are the files with .jar extension. It may contain libraries, resources and metadata files. It is a zipped file containing the compressed versions of .class files and resources of compiled Java libraries and applications. A JAR file only requires a Java installation to run.
EJB-JAR (Enterprise JavaBeans JAR):- These are the files with .jar extension. The Java EE specification also defines a special type of JAR file that contains one or more Enterprise JavaBeans (EJB), the components used for EJB technology, any utility classes needed by the enterprise beans.
WAR (Web Application Archive) :- These are the files with *.war extension. It is used to package web applications. It contains Web components such as servlets and JSPs, as well as static HTML pages, JAR files, JavaScript files, tag libraries and utility classes. A WAR file only requires a Java EE Web Profile-compliant application server to run.
EAR (Enterprise Application Archive) :- These are the files with .ear extension. It contains all the .jar and .war files are packaged as a JAR file with .ear extension and deployed into Application Server. An EAR file requires a fully Java Platform, Enterprise Edition (Java EE)- or Jakarta Enterprise Edition (EE)-compliant application server to run.
RAR (Resource Adapter Archive) :- These are the files with .rar extension. It contains a resource adapter. It is a portable component that enables enterprise beans, Web components, and application clients to access resources and foreign enterprise systems. It is often referred to as a connector.
Later in this series I'll write about creating these Archive files
Top comments (2)
So informative article Ritvik. Awesome π
Thank you so much Charu πβ€οΈ I'm glad you found it helpful π