What is the purpose of Manifest file

前端 未结 5 1481
没有蜡笔的小新
没有蜡笔的小新 2021-02-12 23:53

http://java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html

What does a manifest file do? What is the purpose of it?

Manifest-Version: 1         


        
5条回答
  •  轮回少年
    2021-02-13 00:47

    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.

    Mainfest file is mainly known for contains the name of the class that holds the main function, among various classes in the package...

    When you create a JAR file, it automatically receives a default manifest file. There can be only one manifest file in an archive, and it always has the pathname

    META-INF/MANIFEST.MF
    

提交回复
热议问题