当前位置: 技术问答>java相关
看到别人写的manifest文件这么复杂,我真不敢相信,请问哪里可以学习写manifest文件?
来源: 互联网 发布时间:2015-11-04
本文导语: 我看到的manifest文件,如下,这是从chinajavaworld下载的,如果你是本文的作者,请和我联系:nobody_am@163.com,我想向你请教一下。Main-Class: mailbox Main-Class: mailbox Class-Path: SimpleMailBox.jar Name: META-INF/javamail.default.providers ...
我看到的manifest文件,如下,这是从chinajavaworld下载的,如果你是本文的作者,请和我联系:nobody_am@163.com,我想向你请教一下。Main-Class: mailbox
Main-Class: mailbox
Class-Path: SimpleMailBox.jar
Name: META-INF/javamail.default.providers
Digest-Algorithms: SHA MD5
SHA-Digest: 0/XkyII703L8sh8KjodiRPIdSVA=
MD5-Digest: hHEgWSxi02sSk5uns8/haw==
Name: META-INF/javamail.default.address.map
Digest-Algorithms: SHA MD5
SHA-Digest: ODAfS34uRuTBdYzYKPBp+1eqEZk=
MD5-Digest: ++MWwAqT6C0WoE+jDvLhCA==
Name: META-INF/javamail.charset.map
Digest-Algorithms: SHA MD5
SHA-Digest: a297rNaphdN9awGOyc2R5mGUtVc=
MD5-Digest: HvDsbuHDIdUAIFyAZQKY3A==
Name: META-INF/mailcap
Digest-Algorithms: SHA MD5
SHA-Digest: CLWFZsHqGjAyruExp9l2SE1W470=
MD5-Digest: /occG/CgZOmW7/OMyIeVaw==
Name: javax/mail/Address.class
Digest-Algorithms: SHA MD5
SHA-Digest: AjR7RqnN//cdYGouxbd06mSVfI4=
MD5-Digest: ZnTIQ2aQAtSNIOWXI1pQpw==
Name: javax/mail/AuthenticationFailedException.class
Digest-Algorithms: SHA MD5
SHA-Digest: YF38PrbkcI7HYJYIttTVoJV2vE4=
MD5-Digest: 8Iqc9Vl2ydMjyFKjTXyS4Q==
Name: javax/mail/Authenticator.class
Digest-Algorithms: SHA MD5
SHA-Digest: 7pQcZt78EQHeDlSkDZzjoGLUscg=
MD5-Digest: GFAHvceOxejRDpNFl8dTSA==
Name: javax/mail/BodyPart.class
Digest-Algorithms: SHA MD5
SHA-Digest: Z7HxV6zlgSjnoF0gZFK1/rg/oYg=
MD5-Digest: ldDtHVGoHKVflzQAxmNhCg==
Name: javax/mail/FetchProfile.class
Digest-Algorithms: SHA MD5
SHA-Digest: PGpnHrE17bny56GbZM2pNgxjL6E=
MD5-Digest: Nz33KAF/oZE4DXT26X4nFQ==
Name: javax/mail/FetchProfile$Item.class
Digest-Algorithms: SHA MD5
SHA-Digest: 2KIC/t+DxYO9frsMltQPlKsFtOI=
MD5-Digest: dzzNSgkHEle+kbbZ+L+JHA==
Name: javax/mail/Flags.class
Digest-Algorithms: SHA MD5
SHA-Digest: cFkFTnS/uRD8uQaEE2S1YhbICig=
MD5-Digest: oK2yXR3PGSfixH8ZJt5L7g==
Name: javax/mail/Flags$Flag.class
Digest-Algorithms: SHA MD5
SHA-Digest: Fk/EDANP5be/xdYYc8NcW2aNljI=
MD5-Digest: zw2CZgqIGk9f+p+GJe40Qw==
Name: javax/mail/Folder.class
Digest-Algorithms: SHA MD5
SHA-Digest: KHtU/mLUYR2CuNJpFuMD7fsCxh4=
MD5-Digest: jSb3CLSDk1ElY6QDNfJKlg==
Name: javax/mail/Folder$1.class
Digest-Algorithms: SHA MD5
SHA-Digest: Dvizbo9aRUW+GQuiuF7o76fV74E=
MD5-Digest: VYo4ezl+v+t4kVSYzQZCHQ==
Name: javax/mail/FolderClosedException.class
Digest-Algorithms: SHA MD5
SHA-Digest: e0bN83KGP/c8FKy+RU7UzwZhG2Y=
MD5-Digest: S66Fif+dWjz8dTC4mpuXpQ==
Name: javax/mail/FolderNotFoundException.class
Digest-Algorithms: SHA MD5
SHA-Digest: O0TsgREt68xLBQav6Qm383mdgwY=
MD5-Digest: IeST64ZvLCHKhAEmm56N3g==
Name: javax/mail/UIDFolder.class
Digest-Algorithms: SHA MD5
SHA-Digest: qDcdba2rD5hvk4Quzsc3l/5nCYc=
MD5-Digest: f/ZEC8C6tfIHO/GukXcBAA==
Name: javax/mail/UIDFolder$FetchProfileItem.class
Digest-Algorithms: SHA MD5
SHA-Digest: mc7hlMEC7Ik0finJJfh67fNw3P4=
MD5-Digest: ukjK/0g0D3InWrZdyPjpkQ==
Name: javax/mail/Header.class
Digest-Algorithms: SHA MD5
SHA-Digest: IFMk6FsRtrIqQctMJikigWLUbmg=
MD5-Digest: R0oAtfAdypOCErv3dkz6vQ==
Name: javax/mail/IllegalWriteException.class
Digest-Algorithms: SHA MD5
SHA-Digest: MkCNSyU6eqmTxTcHcHwkDslOJJQ=
MD5-Digest: bGUilxcMYqXte9kMlaXB1w==
Main-Class: mailbox
Class-Path: SimpleMailBox.jar
Name: META-INF/javamail.default.providers
Digest-Algorithms: SHA MD5
SHA-Digest: 0/XkyII703L8sh8KjodiRPIdSVA=
MD5-Digest: hHEgWSxi02sSk5uns8/haw==
Name: META-INF/javamail.default.address.map
Digest-Algorithms: SHA MD5
SHA-Digest: ODAfS34uRuTBdYzYKPBp+1eqEZk=
MD5-Digest: ++MWwAqT6C0WoE+jDvLhCA==
Name: META-INF/javamail.charset.map
Digest-Algorithms: SHA MD5
SHA-Digest: a297rNaphdN9awGOyc2R5mGUtVc=
MD5-Digest: HvDsbuHDIdUAIFyAZQKY3A==
Name: META-INF/mailcap
Digest-Algorithms: SHA MD5
SHA-Digest: CLWFZsHqGjAyruExp9l2SE1W470=
MD5-Digest: /occG/CgZOmW7/OMyIeVaw==
Name: javax/mail/Address.class
Digest-Algorithms: SHA MD5
SHA-Digest: AjR7RqnN//cdYGouxbd06mSVfI4=
MD5-Digest: ZnTIQ2aQAtSNIOWXI1pQpw==
Name: javax/mail/AuthenticationFailedException.class
Digest-Algorithms: SHA MD5
SHA-Digest: YF38PrbkcI7HYJYIttTVoJV2vE4=
MD5-Digest: 8Iqc9Vl2ydMjyFKjTXyS4Q==
Name: javax/mail/Authenticator.class
Digest-Algorithms: SHA MD5
SHA-Digest: 7pQcZt78EQHeDlSkDZzjoGLUscg=
MD5-Digest: GFAHvceOxejRDpNFl8dTSA==
Name: javax/mail/BodyPart.class
Digest-Algorithms: SHA MD5
SHA-Digest: Z7HxV6zlgSjnoF0gZFK1/rg/oYg=
MD5-Digest: ldDtHVGoHKVflzQAxmNhCg==
Name: javax/mail/FetchProfile.class
Digest-Algorithms: SHA MD5
SHA-Digest: PGpnHrE17bny56GbZM2pNgxjL6E=
MD5-Digest: Nz33KAF/oZE4DXT26X4nFQ==
Name: javax/mail/FetchProfile$Item.class
Digest-Algorithms: SHA MD5
SHA-Digest: 2KIC/t+DxYO9frsMltQPlKsFtOI=
MD5-Digest: dzzNSgkHEle+kbbZ+L+JHA==
Name: javax/mail/Flags.class
Digest-Algorithms: SHA MD5
SHA-Digest: cFkFTnS/uRD8uQaEE2S1YhbICig=
MD5-Digest: oK2yXR3PGSfixH8ZJt5L7g==
Name: javax/mail/Flags$Flag.class
Digest-Algorithms: SHA MD5
SHA-Digest: Fk/EDANP5be/xdYYc8NcW2aNljI=
MD5-Digest: zw2CZgqIGk9f+p+GJe40Qw==
Name: javax/mail/Folder.class
Digest-Algorithms: SHA MD5
SHA-Digest: KHtU/mLUYR2CuNJpFuMD7fsCxh4=
MD5-Digest: jSb3CLSDk1ElY6QDNfJKlg==
Name: javax/mail/Folder$1.class
Digest-Algorithms: SHA MD5
SHA-Digest: Dvizbo9aRUW+GQuiuF7o76fV74E=
MD5-Digest: VYo4ezl+v+t4kVSYzQZCHQ==
Name: javax/mail/FolderClosedException.class
Digest-Algorithms: SHA MD5
SHA-Digest: e0bN83KGP/c8FKy+RU7UzwZhG2Y=
MD5-Digest: S66Fif+dWjz8dTC4mpuXpQ==
Name: javax/mail/FolderNotFoundException.class
Digest-Algorithms: SHA MD5
SHA-Digest: O0TsgREt68xLBQav6Qm383mdgwY=
MD5-Digest: IeST64ZvLCHKhAEmm56N3g==
Name: javax/mail/UIDFolder.class
Digest-Algorithms: SHA MD5
SHA-Digest: qDcdba2rD5hvk4Quzsc3l/5nCYc=
MD5-Digest: f/ZEC8C6tfIHO/GukXcBAA==
Name: javax/mail/UIDFolder$FetchProfileItem.class
Digest-Algorithms: SHA MD5
SHA-Digest: mc7hlMEC7Ik0finJJfh67fNw3P4=
MD5-Digest: ukjK/0g0D3InWrZdyPjpkQ==
Name: javax/mail/Header.class
Digest-Algorithms: SHA MD5
SHA-Digest: IFMk6FsRtrIqQctMJikigWLUbmg=
MD5-Digest: R0oAtfAdypOCErv3dkz6vQ==
Name: javax/mail/IllegalWriteException.class
Digest-Algorithms: SHA MD5
SHA-Digest: MkCNSyU6eqmTxTcHcHwkDslOJJQ=
MD5-Digest: bGUilxcMYqXte9kMlaXB1w==
|
最简单的可执行Jar,manifest.mf只要3行:
Manifest-Version: 1.0
Class-Path: 你的jar文件名.jar 其他jar文件名.jar
Main-Class: 你的包名.你的包含main方法的类名
nobody_am(小兵),你列出来的那一大堆只是数字签名,可有可无的。
Class-Path也可以不要,但包括这一行可以避免很多类装载错误。多个class-path用空格隔开。
详情参阅j2sdk文档的
guidejarindex.html
guidejarjar.html
guideextensionsspec.html
Manifest-Version: 1.0
Class-Path: 你的jar文件名.jar 其他jar文件名.jar
Main-Class: 你的包名.你的包含main方法的类名
nobody_am(小兵),你列出来的那一大堆只是数字签名,可有可无的。
Class-Path也可以不要,但包括这一行可以避免很多类装载错误。多个class-path用空格隔开。
详情参阅j2sdk文档的
guidejarindex.html
guidejarjar.html
guideextensionsspec.html
|
j2sdk的文档可以到java.sun.com去找,哪里java的资源极其丰富,我常去。
sqlserver的包,放在外面没有问题的。
sqlserver的包,放在外面没有问题的。
|
既然这么复杂,还学写它干什么,用工具能生产,你学了也没用阿。