\u5236\u4f5cexe\u5c0f\u7a0b\u5e8f<\/a>\u4ef6\u5939\uff0c\u5728\u53f3\u4fa7\u9762\u677f\u70b9\u51fbUse classpath of module ‘MyApplication’\u4e0b\u65b9\u7684Directory for META-INF\/MANIFEST.MF\u7684\u6587\u4ef6\u5939\u6309\u94ae\uff0c\u7136\u540e\u70b9\u51fbOK\u3002<\/p>\n6. \u70b9\u51fbApply\uff0c\u7136\u540e\u70b9\u51fbOK\u3002<\/p>\n
7. \u5728IntelliJ IDEA\u83dc\u5355\u4e2d\u9009\u62e9 Build > Build Artifacts\uff0c\u5e76\u9009\u62e9 MyApplication > Build\u3002<\/p>\n
\u7b2c\u4e09\u6b65\uff1a\u4e0b\u8f7d\u5e76\u5b89\u88c5Launch4j<\/p>\n
1. \u8bbf\u95eeLaunch4j\u5b98\u65b9\u4e0b\u8f7d\u9875\u9762 [http:\/\/launch4j.sourceforge.net\/](http:\/\/launch4j.sourceforge.net\/)\uff0c\u6839\u636e\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u76f8\u5e94\u7684\u7248\u672c\u3002<\/p>\n
2. \u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u89e3\u538b\u7f29\u5e76\u8fd0\u884cLaunch4j\u3002<\/p>\n
\u7b2c\u56db\u6b65\uff1a\u4f7f\u7528Launch4j\u5c06jar\u6587\u4ef6\u8f6c\u6362\u4e3aexe\u6587\u4ef6<\/p>\n
1. \u5728Launch4j\u4e2d\uff0c\u70b9\u51fbOutput file\uff0c\u4e3a\u751f\u6210\u7684exe\u6587\u4ef6\u6307\u5b9a\u540d\u79f0\u548c\u8def\u5f84\u3002<\/p>\n
2. \u5728 JAR field\uff0c\u70b9\u51fb\u5305\u542b3\u4e2a\u70b9\u7684\u6309\u94ae “…\u201d\u3002\u5bfc\u822a\u5230\u7b2c\u4e8c\u6b65\u751f\u6210\u7684jar\u6587\u4ef6\u6240\u5728\u7684\u8def\u5f84\uff0c\u9009\u62e9\u8be5\u6587\u4ef6\u3002<\/p>\n
3. \u5728\u53f3\u4fa7\u9009\u62e9 ‘Header’ \u6807\u7b7e\uff0c\u9009\u62e9\u8981\u4f7f\u7528\u7684JRE\u7248\u672c\u3002<\/p>\n
4. \u5728\u53f3\u4fa7\u9009\u62e9 ‘Manifest’ \u6807\u7b7e\uff0c\u5e76\u8bbe\u7f6e’ Min JRE version ‘\uff0c\u4ee5\u786e\u4fdd\u7528\u6237\u81f3\u5c11\u5177\u6709\u6b64\u7248\u672c\u7684Java\u8fd0\u884c\u73af\u5883\u3002<\/p>\n
5. \u70b9\u51fb\u5de6\u4e0a\u89d2\u7684\u9f7f\u8f6e\u56fe\u6807\u4fdd\u5b58\u914d\u7f6e\u3002<\/p>\n
6. \u70b9\u51fb\u5de5\u5177\u680f\u4e0a\u7684\u7eff\u8272\u64ad\u653e\u6309\u94ae\u6267\u884c\u6784\u5efa\u8fc7\u7a0b\u3002\u5b8c\u6210\u540e\uff0cLaunch4j\u5c06\u751f\u6210\u4e00\u4e2aexe\u6587\u4ef6\u3002<\/p>\n
\u73b0\u5728\uff0c\u60a8\u5df2\u7ecf\u6210\u529f\u4f7f\u7528IntelliJ IDEA\u751f\u6210\u4e86\u4e00\u4e2a\u53ef\u6267\u884c\u7684exe\u6587\u4ef6\u3002\u7528\u6237\u53ef\u4ee5\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u53cc\u51fb\u6b64exe\u6587\u4ef6\u6765\u8fd0\u884c\u4f60\u7684Java\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528IntelliJ IDEA\u521b\u5efa\u53ef\u6267\u884c\u7684exe\u6587\u4ef6\u3002\u867d\u7136IntelliJ\u672c\u8eab\u4e0d\u76f4\u63a5\u652f\u6301\u751f\u6210exe\u6587\u4ef6\uff0c\u4f46\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\uff0c\u7ed3\u5408IntelliJ IDEA\u6765\u5b8c\u6210\u6b64<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[11575,1032,11576,695,12],"topic":[],"class_list":["post-6412","post","type-post","status-publish","format-standard","hentry","category-zhuomianruanjian","tag-labviewexe","tag-1032","tag-exe","tag-695","tag-12"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/6412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=6412"}],"version-history":[{"count":0,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/6412\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=6412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=6412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=6412"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=6412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}