Sunday, June 24, 2007

Jar, War and Ear files

Jar, War and Ear files are essentially the archived files. There are no structural differences among the three types, though these are intended for different purposes.

Jar: Jar files (Java Archive file : .jar extension) stores of Java classes, resources, auxiliary files, etc. Java source files are compiled and then distributed in jar format.

War files (Web Archive File : .war extension) are intended to contain complete Web applications. A Web Application is a collection of files, classes, resources, .jar files that can be packaged and accessed as one servlet context. Usually, sample web applications are distributed using war format.

Ear files (Enterprise Archive file : .ear extension) are intended to contain complete Enterprise applications. In this context, an enterprise application is defined as a collection of .jar files, resources, classes, and multiple Web applications.

All three types of files can be generated using Ant.

Advertisement

2 comments:

Anonymous said...

My company needs wireless data collection tool that will enable me to make custom forms on my Blackberry or Motorola phone. The form need to support drop down menus, GPS, check boxes, wireless inspection form, bar coding and photo capture. Can someone help me with this please?

Anonymous said...

Nice posting. Very useful for java bigneer.

Thanks,

Binod Suman
http://binodsuman.blogspot.com

Total Pageviews

Diving into the Controversial World of IPL with Lalit Modi

Lalit Modi, the mastermind behind the Indian Premier League (IPL), recently had a candid interview with Raj Shamani. The interview delved d...