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.
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.
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
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
My personal blog blog.ritvikdubey.com
This is rightly curated, there is not any error that can be expected from you. I literally learned something new today, these file 🗃️ extensions I have been using for many days but never ever have expected that .rar and .ear extensions are related to Java😅
Paragraphs are short and makes it simple to read for anyone else. The images pasted makes the explanation diagrammatic🖼️
Learned something new today Ritvik ⚡⚡⚡⚡
Wish you all the very best for everything in life💫✨✨✨✨