meta-infç¸å½äºä¸ä¸ªä¿¡æ¯å ï¼ç®å½ä¸çæ件åç®å½è·å¾Java 2å¹³å°ç认å¯ä¸è§£éï¼ç¨æ¥é ç½®åºç¨ç¨åºãæ©å±ç¨åºãç±»å è½½å¨åæå¡
manifest.mfæ件ï¼å¨ç¨jaræå æ¶èªå¨çæçã
META-INF åå¨ç¨åºå ¥å£ç¸å ³ä¿¡æ¯, æ¯ä¸ªjar é½ä¼æè¿ä¸ªæ件夹,éé¢ç MANIFESTæ件 è®°å½è¿äºä¿¡æ¯WEB-INF 使ç¨web 项ç®æä¼æè¿ä¸ªæ件夹,æ®éç j2seé¡¹ç® æ¯æ²¡æè¿ä¸ªæ件夹ç æ们æMANIFESTä¸çé 置信æ¯è¿è¡åç±»ï¼å¯ä»¥å½çº³åºä¸é¢å 个大类ï¼ãã
ä¸. ä¸è¬å±æ§ãã
Manifest-Versionããç¨æ¥å®ä¹manifestæ件ççæ¬ï¼ä¾å¦ï¼Manifest-Version: 1.0ãã
Created-Byãã声æ该æ件ççæè ï¼ä¸è¬è¯¥å±æ§æ¯ç±jarå½ä»¤è¡å·¥å ·çæçï¼ä¾å¦ï¼Created-By: Apache Ant 1.5.1ãã
Signature-Versionããå®ä¹jaræ件çç¾åçæ¬ãã
Class-Pathããåºç¨ç¨åºæè ç±»è£ è½½å¨ä½¿ç¨è¯¥å¼æ¥æ建å é¨çç±»æ索路å¾ãã
äº. åºç¨ç¨åºç¸å ³å±æ§ãã
Main-Classããå®ä¹jaræ件çå
¥å£ç±»ï¼è¯¥ç±»å¿
é¡»æ¯ä¸ä¸ªå¯æ§è¡çç±»ï¼ä¸æ¦å®ä¹äºè¯¥å±æ§å³å¯éè¿ java -jar x.jaræ¥è¿è¡è¯¥jaræ件ããã
ä¸. å°ç¨åº(Applet)ç¸å ³å±æ§ãã
Extendsion-Listãã该å±æ§æå®äºå°ç¨åºéè¦çæ©å±ä¿¡æ¯å表ï¼å表ä¸çæ¯ä¸ªåå对åºä»¥ä¸çå±æ§ãã
<extension>-Extension-Nameãã3. <extension>-Specification-Versionãã4. <extension>-Implementation-Versionãã5. <extension>-Implementation-Vendor-Idãã5. <extension>-Implementation-URLããå. æ©å±æ è¯å±æ§ãã1. Extension-Nameãã该å±æ§å®ä¹äºjaræ件çæ è¯ï¼ä¾å¦Extension-Name: Struts Frameworkããäº. å
æ©å±å±æ§ãã1. Implementation-Title å®ä¹äºæ©å±å®ç°çæ é¢ãã2. Implementation-Version å®ä¹æ©å±å®ç°ççæ¬ãã3. Implementation-Vendor å®ä¹æ©å±å®ç°çç»ç» ãã4. Implementation-Vendor-Id å®ä¹æ©å±å®ç°çç»ç»çæ è¯ãã5. Implementation-URL : å®ä¹è¯¥æ©å±å
çä¸è½½å°å(URL)ãã6. Specification-Title å®ä¹æ©å±è§èçæ é¢ãã7. Specification-Version å®ä¹æ©å±è§èççæ¬ãã8. Specification-Vendor 声æäºç»´æ¤è¯¥è§èçç»ç»ãã9. Sealed å®ä¹jaræ件æ¯å¦å°åï¼å¼å¯ä»¥æ¯trueæè
false (è¿ç¹æè¿ä¸æ¯å¾ç解)ããå
. ç¾åç¸å
³å±æ§ããç¾åæ¹é¢çå±æ§æ们å¯ä»¥æ¥åç
§JavaMailææä¾çmail.jarä¸çä¸æ®µããName: javax/mail/Address.classããDigest-Algorithms: SHA MD5 ããSHA-Digest: AjR7RqnN//cdYGouxbd06mSVfI4=ããMD5-Digest: ZnTIQ2aQAtSNIOWXI1pQpw==ããè¿æ®µå
容å®ä¹ç±»ç¾åçç±»åã计ç®æè¦çç®æ³å以å对åºçæè¦å
容(使ç¨BASE64æ¹æ³è¿è¡ç¼ç )