{"id":870,"date":"2015-05-07T14:32:51","date_gmt":"2015-05-07T14:32:51","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=870"},"modified":"2015-05-07T15:26:41","modified_gmt":"2015-05-07T15:26:41","slug":"creating-a-manifest-file-java","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/creating-a-manifest-file-java\/","title":{"rendered":"Creating a MANIFEST File Java"},"content":{"rendered":"<p>It is a metadata file that contains name-value pairs organized in different sections.<\/p>\n<p>If a JAR file is intended to be used as an executable file, the manifest file specifies the main class of the application. The manifest file is named MANIFEST.MF <\/p>\n<p><em>Other uses are<\/em>:<\/p>\n<ol>\n<li>store hashes of stored files for signature validation<\/li>\n<li>    sealing jar files (i.e. ensure that only classes from this jar file are loaded in the packages defined in this jar file).<\/li>\n<li>    store version\/product\/producer information to be readable at runtime<\/li>\n<\/ol>\n<p>The Main class to be called once the JAR is executed is defined as below<\/p>\n<p> If an application is bundled in a JAR file, the Java Virtual Machine needs to be told what the entry point to the application is. An entry point is any class with a public static void main(String[] args) method<\/p>\n<pre>\r\nManifest-Version: 1.0\r\nMain-Class: com.mugil.util.Test\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>It is a metadata file that contains name-value pairs organized in different sections. If a JAR file is intended to be used as an executable file, the manifest file specifies the main class of the application. The manifest file is named MANIFEST.MF Other uses are: store hashes of stored files for signature validation sealing jar&hellip; <a href=\"https:\/\/codethataint.com\/blog\/creating-a-manifest-file-java\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[154],"tags":[],"class_list":["post-870","post","type-post","status-publish","format-standard","hentry","category-misc"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=870"}],"version-history":[{"count":2,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"predecessor-version":[{"id":876,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/870\/revisions\/876"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}