{"id":364,"date":"2007-10-21T00:00:00","date_gmt":"2007-10-21T00:00:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=364"},"modified":"2007-10-21T00:00:00","modified_gmt":"2007-10-21T00:00:00","slug":"Working with Manifest Files: The Basics","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=364","title":{"rendered":"Working with Manifest Files: The Basics"},"content":{"rendered":"<p><DIV id=PageTitle>Working with Manifest Files: The Basics<\/DIV><br \/>\n<BLOCKQUOTE>JAR files support a wide range of functionality, including electronic signing, version control, package sealing, and others. What gives a JAR file this versatility? The answer is the JAR file&#8217;s <EM>manifest<\/EM>.<br \/>\n<P>The manifest is a special file that can contain information about the files packaged in a JAR file. By tailoring this &#8220;meta&#8221; information that the manifest contains, you enable the JAR file to serve a variety of purposes. <\/P><br \/>\n<P>This lesson will explain the contents of the manifest file and show you how to work with it, with examples for the basic features: <\/P><\/BLOCKQUOTE><br \/>\n<H3><A class=TutorialLink href=\"http:\/\/www.strongd.net\/blog\/show\/359\" target=_top>Understanding the Default Manifest<\/A><\/H3><br \/>\n<BLOCKQUOTE>When you create a JAR file, a default manifest is created automatically. This section describes the default manifest. <\/BLOCKQUOTE><br \/>\n<H3><A class=TutorialLink href=\"http:\/\/www.strongd.net\/blog\/show\/361\" target=_top>Modifying a Manifest File<\/A><\/H3><br \/>\n<BLOCKQUOTE>This section shows you the basic method of modifying a manifest file. The later sections demonstrate specific modifications you may want to make. <\/BLOCKQUOTE><br \/>\n<P><\/P><br \/>\n<H3><A class=TutorialLink href=\"http:\/\/www.strongd.net\/blog\/show\/362\" target=_top>Setting an Application&#8217;s Entry Point<\/A><\/H3><br \/>\n<BLOCKQUOTE>This section describes how to use the <TT>Main-Class<\/TT> header in the manifest file to set an application&#8217;s entry point. <\/BLOCKQUOTE><br \/>\n<H3><A class=TutorialLink href=\"http:\/\/www.strongd.net\/blog\/show\/363\" target=_top>Adding Classes to the JAR File&#8217;s Classpath<\/A><\/H3><br \/>\n<BLOCKQUOTE>This section describes how to use the <TT>Class-Path<\/TT> header in the manifest file to add classes in other JAR files to the classpath when running an applet or application. <\/BLOCKQUOTE><br \/>\n<H3><A class=TutorialLink href=\"http:\/\/www.strongd.net\/blog\/show\/354\" target=_top>Setting Package Version Information<\/A><\/H3><br \/>\n<BLOCKQUOTE>This section describes how to use the package version headers in the manifest file. <\/BLOCKQUOTE><br \/>\n<H3><A class=TutorialLink href=\"http:\/\/www.strongd.net\/blog\/show\/360\" target=_top>Sealing Packages within a JAR File<\/A><\/H3><br \/>\n<BLOCKQUOTE>This section describes how to seal packages within a JAR file by modifying the manifest file. <\/BLOCKQUOTE><br \/>\n<DIV><\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Working with Manifest Files: The Basics JAR files support a wide range of functionality, including electronic signing, version control, package sealing, and others. What gives a JAR file this versatility? The answer is the JAR file&#8217;s manifest. The manifest is a special file that can contain information about the files packaged in a JAR file. &hellip; <a href=\"https:\/\/www.strongd.net\/?p=364\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Working with Manifest Files: The Basics<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-364","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=364"}],"version-history":[{"count":0,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/364\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}