Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is JAR/EAR .  RSS feed

 
Janaranjani K
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody
Though it is silly question,it is really a headache for me.For what purpose we need these files.I know the expansion of JAR(Java ARchive).What's the expansion of EAR.When they are used and where.


thanks in advance
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Sun :

Contents of a J2EE Application

You bundle each module into a file with a particular format-- a J2EE application in a .ear file, an enterprise bean in an EJB .jar file, a Web component in a .war file, and a J2EE application client in a .jar file. An .ear file, for example, contains an .xml file for its deployment descriptor, and one or more EJB .jar and .war files. An EJB .jar contains its deployment descriptor and the .class files for the enterprise bean.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think EAR stands for Enterprise Archive. Both are basically ZIP files with extra information that is important to the JVM that will run the Java application that is stored inside.

Layne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!