Ways to update a jar file with manifest……<\/strong>
\nI have created a text file as manifest like aaa.txt which contains<\/p>\n[Code]Main-class: Mainclassname
\n[\/Code]
\n\/\/a new line or enter must be pressed after Mainclassname before saving <\/p>\n
Updating a jar file with main class, you have to move the jar file to the BIN folder of JDK. Then using the command propmt executed the commands given below:<\/p>\n
[code]
\njar umf aaa.txt calender.jar
\njar xvf calender.jar
\ntype META-INFMANIFEST.MF
\n[\/code]
\nNow double-click on your JAR file….<\/p>\n
Thanking you,
\nUjjal<\/p>\n","protected":false},"excerpt":{"rendered":"
To create a jar file execute this command given below [code] jar cf jar-file input-file(s) [\/code] \/\/input files are .class files and extra files you have used like music,jars etc. For more you can see this Creating JAR files After creation you must specify the main class using manifest. Ways to update a jar file … <\/p>\n
Continue reading “JAVA [creating Jar files]”<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[10],"tags":[55,56,59,64,70,79,81,91,137],"_links":{"self":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/123"}],"collection":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":0,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}