Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I hear the usage of manifests in various ways but never have had the need—to my knowledge—to use one. What are they and how are they used?

EDIT: I'm curious about manifests in general with any language.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

A manifest is a blob of metadata that describes the assembly itself (name, version, required external assemblies, etc.).

An assembly must contain an associated manifest (also referred to as assembly metadata). The manifest documents each module within the assembly, establishes the version of the assembly, and also documents any external assemblies referenced by the current assembly

share|improve this answer
1  
He is asking about Java, not .NET, if you note the tag. –  Oded Sep 21 '11 at 19:29
1  
LOL....i just noticed that. I guess manifest should mean the same in both languages. But if they don't let me know, i will delete the answer –  Pankaj Upadhyay Sep 21 '11 at 19:32
    
They don't. See the link Robert posted in his answer. Don't assume. –  Oded Sep 21 '11 at 19:33
    
The essence is same. Both contains the info about the files. –  Pankaj Upadhyay Sep 21 '11 at 19:38
    
Well you all are right, I wanted to know the context of Java and any other languages if it applies. –  Kyle Hayes Sep 21 '11 at 20:34
add comment

The manifest is a special file that can contain information about the files packaged in a JAR file. By tailoring this "meta" information that the manifest contains, you enable the JAR file to serve a variety of purposes.

http://download.oracle.com/javase/tutorial/deployment/jar/manifestindex.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.