Friday 15 March 2013

What is JAR file?

What is JAR file? 
JAR file stands for Java ARchive, a compressed file like zip, rar, lha files.
Using the jar
 command, a JAR file is commonly used for packaging Java classes (.class).
JAR is an acronym for Java Archive. It is nothing but a compressed form of a group of class files.

For Example if you have your packages and class files in C:javaprgs

Then from the windows
 command prompt one can jar the files in javaprgs using the following command

C:javaprgs> jar ?cvfM jar-file-name.jar *.*

We also hav WAR n EAR files. 

WAR is acronynm for Web
 Archive

EAR is acronynm for Enterprise Archive.


Blog Author: Vijay Kumar

Go to: Coding Problem Solutions

No comments: