META-INF

For web, the META-INF directory is typically found in Java based webapplications such as jsp (Java server pages). You can also find them in Java related webservers such as Apache-Tomcat.

The file you mentioned:

MANIFEST.MF: The manifest file that is used to define extension and package related data. So mostly it can contain human readable info like version, producer,.. but also machine readable info like module dependencies in external frameworks you may be using

Everything inside META-INF:

The files/directories in the META-INF directory are recognized and interpreted by the Java Platform to configure applications, extensions, class loaders and services.

When you don't "deviate" of the normal path (eg: you have no additional frameworks,...), you don't need certain files and thus nothing happens if you delete them. Java will create a default manifest file with every application.

A META-INF directory is used in all sorts of applications, including zipped file formats like epub, open office and office open xml, so it would probably help if you mentioned what kind of web application you noticed this with. In most cases I've seen it's used to to tell an application what kind of use is intended for a ZIP file and typically includes metadata (just like it says on the tin) and possibly a manifest. 


Usually,existing a MANIFEST.MF file inside the META-INF folder. In this file, you can remark your project information such as :version and .jar refered to. If you package your ejb project, you must remark all .jar which you're refering to,then the container can load your refered classes in the refered package properly. Otherwise, the contianer may generates some errors like "can't find the class xxx"

你可能感兴趣的:(META-INF)