jump to navigation

EAR, WAR, JAR files October 31, 2006

Posted by Allu in J2EE.
trackback

An EAR file is a standard JAR file with an “.ear” extension, named from Enterprise ARchive file. A J2EE application with all of its modules is delivered in EAR file. JAR files can’t have other JAR files. But EAR and WAR (Web ARchive) files can have JAR files.
 An EAR file contains all the JARs and WARs belonging to an application. JAR files contain the classes and WAR files contain the Web components (JSPs, static content (HTML, CSS, GIF etc), Servlets etc.). The J2EE application client’s class files are also stored in a JAR file. EARs, JARs, and WARs all contain an XML-based  deployment descriptor.

Advertisements

Comments»

1. K.Narahari - December 7, 2006

I know how to create jar files but i don’t kow how to create ear, war files. plz send msg to create ear, war files

ramesh - November 18, 2009

you can go to root directory and type the command to create the war file
jar -cvf sample.war .

ear file

jar -cvf sample.ear sample.jar sample.war

2. selvin - October 13, 2008

I know how to create jar files in java for single application. but i don’t kow how to create ear, war files. plz send msg to create ear, war files and more than one jar files

3. jack - November 24, 2008

build.bat file will generate the ear file. When you want to pack the deliverables or install the application we will run Buid.bat file to build an appliccatin. The outcome of this build process will be generated a Ear file which can be deployed in the app server domain

4. rr - September 7, 2012

Thanks


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: