Define Jar,War,Ear file
By Ramakrishna on Apr 4, 2009 in Define creating and extracting of jar
Q) What is EAR file
Rep) Enterprise Archive file. A JAR archive that contains a
J2EE application.
Q) What is JAR file
Rep) Java Archive file it contains a J2EE application.
You can create a JAR file using the command
jar cf XYZ.jar *.class *.gif
if will compress all the .class files and the related gif files to the one file called jar
You can extract the JAR file using the command
jar xf XYZ.jar
Updating the existing JAR file
jar -uf XYZ.jar file1.class
Q) What is WAR file
Rep) Enterprise Archive file. A JAR archive that contains a
J2EE application.
You can create a WAR file using the command
jar -cfv XYZ.war
You can extract a WAR file using the command
jar -xfv XYZ.war
