Skip to Content
author's profile photo Former Member
Former Member

PAR,EAR,JAR files

Could anybody let me know about PAR,EAR,JAR files,differences and the situations to use them.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 06:18 AM

    Hi Anil,

    Files with a .jar extension or JAR files, are essentially just a collection of files compressed using the ZIP/ZLIB compression format. JAR (short for Java Archive) files were introduced in the early days of Java as a means to conveniently package and distribute Java applications and components. Since then, a number of additions to the Java platform have followed suit. The introduction of the EAR file is one such addition.

    An EAR (Enterprise Archive) file is a JAR file that contains a J2EE application. A J2EE application is a group of Web modules that collectively perform as a single entity. A Web Module is an entity consisting of one or more resources such as HTML files, Java class files, XML files, etc. Web Modules are packaged in Web Archive (WAR) files. Looking at it from a top-down view, EAR files contain JAR files and WAR files. Packaging resources in WAR files, JAR files and eventually EAR files, makes it easy to reuse and reassemble components as new J2EE applications and distribute them to new environments.

    A portlet archive (PAR) file is an archive file that contains all of the files needed in order to deploy a portlet or a group of portlets into the portal Web application.

    A PAR file can contain files for one portlet, or it can contain files for multiple related portlets. There is no limit to the number of portlets that a PAR file can contain. In addition, a PAR file can contain local portlets, remote portlets, or a combination of local and remote portlets.

    You can go through this wiki also regarding par files

    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/par+file&

    Thanks and Regrads,

    Pankaj

    Edited by: pankaj pathak on Jan 21, 2008 11:57 AM

    Edited by: pankaj pathak on Jan 21, 2008 12:10 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 06:29 AM

    Par files are created from portal. It stands for portal archive. It is created using your own Portal project or any standard portal project. Ear are enterprise archives. They can be created from j2ee or webdynpro applications. in j2ee, ejb and war files are packaged as ear while webdynpro directly generates ear from the project. Jar files are Java archives. They contain the java classes which are resused for any project which reference them. The functionality of the classes in jar are used in the project once they are included in the classpath of the project.

    Regards,

    Harini S

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 21, 2008 at 06:34 AM

    Hi Anil

    PAR

    Portal applications are packaged in PAR (Portal Archive) files. A PAR file is a standard ZIP file with a .par extension that contains a deployment descriptor, all Java classes, Web resources and other files required to run the application.

    Within the portal, the name of the PAR file is the name of the application. The fully qualified name of any component or service defined in the PAR is the name of the PAR file, followed by a period (.) and then the name of the component or service.

    Link: http://help.sap.com/saphelp_nw70/helpdata/en/e3/fab74247e2b611e10000000a155106/frameset.htm

    EAR

    A file type that contains a Web-based application for companies.

    From a technical viewpoint, an EAR file is an archive of MIME type "application/zip" and can be extracted with any pack program. It always contains a file in which all of the components belonging to the archive are described. Further applications are necessary to enable the correct implementation of the applications contained in the archive after extraction.

    End of Content Area

    Link : http://help.sap.com/saphelp_nw70/helpdata/en/3d/34fd3d4aefd95ee10000000a114084/frameset.htm

    JAR

    JAR file is a simple zip file, which stands for Java archive.

    Cheers

    Chinmaya

    reward for helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 12:19 PM

    Thanks everybody for the quick response.I got a clear idea.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.