DEV Community

Cover image for Java Distribution
Ritvik Dubey
Ritvik Dubey

Posted on

Java Distribution

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 -

  1. JAR (Java Archive)
  2. WAR (Web Application Archive)
  3. EAR (Enterprise Application Archive)
  4. 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.
java1.jpg

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.
web.jpg

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.
Enterprise.jpg

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

Okay so that's enough for now, follow my this journey to learn more about Java.

Thank you for reading.

Please share your thoughts about it and correct me if I'm wrong.

I hope you liked it and found it helpful.

Cover:- Rajat Gour

Connect with me on Twitter or LinkedIn

My personal blog blog.ritvikdubey.com

Top comments (2)

Collapse
 
_charu_ profile image
Charu

So informative article Ritvik. Awesome ๐Ÿ™Œ

Collapse
 
ritvikdubey27 profile image
Ritvik Dubey

Thank you so much Charu ๐Ÿ˜‡โค๏ธ I'm glad you found it helpful ๐Ÿ˜‡