File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

META-INF directory?

 
ankur rathi
Ranch Hand
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is META-INF directory?

Thanks.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a directory that has special meaning in JAR files.
See the JAR File Specification.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not a Servlet question.
Rathi, please try to be more careful of the forums where you ask you questions.

Moving to the Java in general (beginner) forum.

Dave
 
Beng Wooi Toh
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not know whether there is a formal long-form for META-INF and WEB-INF, but many consider them to stand for META INFORMATION and WEB (component) INFORMATION.

Meta information is information about something.

A typical .ear (Enterprise ARchive) file will probably have (just an example) :
META-INF/MANIFEST.MF
META-INF/application.xml

A typical .jar (Java ARchive) file will probably have (just an example) :
META-INF/MANIFEST.MF
META-INF/ejb-jar.xml
META-INF/jboss.xml (dependent on container used)

A typical .war (Web ARchive) file will probably have (just an example) :
META-INF/MANIFEST.MF
WEB-INF/classes/com/compname/xxx/Xxx.class
WEB-INF/jboss-web.xml (dependent on container used)
WEB-INF/web.xml

Since .ear, .jar and .web are J2EE packaging components, their XXX-INF directory contains files that describes the component/contents of the component.

Sometimes files that are under XXX-INF are usually not used when the application/component is run. For example, if you do not want a .jsp, .html or any file to be directly accessible from the outside (eg, web browser), then you can just place them under the WEB-INF dir.

Hope this helps.
[ December 23, 2005: Message edited by: Beng Wooi Toh ]
 
Stuart Ash
Ranch Hand
Posts: 637
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David O'Meara:
This is not a Servlet question.
Rathi, please try to be more careful of the forums where you ask you questions.

Moving to the Java in general (beginner) forum.

Dave


Having come across META-INF while learning Servlets, a learner like Rathi would have thought this might be related to servlets. So, it might be a little harsh/overbearing to expect them to post it under another category, wouldn't it?
 
Beng Wooi Toh
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having come across META-INF while learning Servlets, a learner like Rathi would have thought this might be related to servlets. So, it might be a little harsh/overbearing to expect them to post it under another category, wouldn't it?


Agree
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic