<\/figure>\n<\/p>\n\u4ef6\u8f6c\u6362\u4e3aEXE\u6587\u4ef6\u3002<\/p>\n
**\u6b65\u9aa4**<\/p>\n
1. \u4f7f\u7528IntelliJ IDEA\u521b\u5efaJava\u9879\u76ee\uff0c\u5e76\u786e\u4fdd\u9879\u76ee\u5df2\u6210\u529f\u7f16\u8bd1\u4e14\u53ef\u8fd0\u884c\u3002<\/p>\n
2. \u6253\u5f00\u9879\u76ee\u7684`File`\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9`Project Structure`\u3002<\/p>\n
3. \u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u5de6\u4fa7\u680f\u7684`Artifacts`\u3002<\/p>\n
4. \u70b9\u51fb\u53f3\u4fa7\u680f\u4e0a\u65b9\u7684+\u53f7\uff0c\u9009\u62e9`JAR` > `From modules with dependencies`\u3002<\/p>\n
5. \u5728\u51fa\u73b0\u7684`Create JAR from Modules`\u7a97\u53e3\u4e2d\uff0c\u6d4f\u89c8\u5e76\u627e\u5230\u4e3b\u7c7b\uff08\u5305\u542bmain\u65b9\u6cd5\u7684\u7c7b\uff09\u3002\u7136\u540e\u70b9\u51fb`OK`\u3002<\/p>\n
6. \u8fd8\u53ef\u4ee5\u5728`Jar Output Directory`\u4e2d\u9009\u62e9\u8f93\u51fa\u7684\u76ee\u5f55\u3002\u786e\u8ba4\u8bbe\u7f6e\u65e0\u8bef\u540e\uff0c\u70b9\u51fb`OK`\u3002<\/p>\n
7. \u6700\u540e\uff0c\u5728`Build Menu`\uff08\u53ef\u5728\u5de5\u5177\u680f\u4e2d\u627e\u5230\uff09\u4e2d\uff0c\u9009\u62e9`Build Artifacts`\uff0c\u7136\u540e\u9009\u62e9`Build`\uff0c\u751f\u6210JAR\u6587\u4ef6\u3002<\/p>\n
\u81f3\u6b64\uff0cJAR\u6587\u4ef6\u5df2\u521b\u5efa\u3002\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528Launch4J\u5c06JAR\u6587\u4ef6\u8f6c\u6362\u4e3aEXE\u6587\u4ef6\u3002<\/p>\n
1. \u4e0b\u8f7d\u5e76\u5b89\u88c5Launch4J\uff1ahttps:\/\/launch4j.sourceforge.io\/<\/p>\n
2. \u6253\u5f00Launch4J\uff0c\u5de6\u4fa7\u9009\u62e9`Basic`\u9009\u9879\u3002<\/p>\n
3. \u5728`Output file`\u4e2d\uff0c\u9009\u62e9\u8981\u751f\u6210\u7684EXE\u6587\u4ef6\u7684\u8def\u5f84\u548c\u540d\u79f0\u3002<\/p>\n
4. \u5728`Jar`\u4e0b\uff0c\u9009\u62e9\u6b65\u9aa47\u751f\u6210\u7684JAR\u6587\u4ef6\u3002<\/p>\n
5. \u5728`Icon`\u4e0b\uff0c\u9009\u62e9\u60f3\u8981\u5e94\u7528\u4e8eEXE\u6587\u4ef6\u7684\u56fe\u6807\u6587\u4ef6\uff08\u53ef\u9009\uff09\u3002<\/p>\n
6. \u5207\u6362\u5230`JRE`\u9009\u9879\u5361\uff0c\u8bbe\u7f6e`Min JRE version`\uff0c\u4f8b\u5982\uff0c\u5982\u679cJava\u5e94\u7528\u7a0b\u5e8f\u9700\u8981Java 8\uff0c\u5219\u8bbe\u7f6e\u4e3a1.8.0\u3002<\/p>\n
7. \u4fdd\u5b58\u914d\u7f6e\u6587\u4ef6\uff0c\u70b9\u51fb`Save Config`\u3002<\/p>\n
8. \u70b9\u51fb\u53f3\u4e0a\u89d2\u7684`Build Wrapper`\uff08\u9f7f\u8f6e\u56fe\u6807\uff09\uff0c\u751f\u6210EXE\u6587\u4ef6\u3002<\/p>\n
\u81f3\u6b64\uff0cIntelliJ IDEA\u751f\u6210\u7684JAR\u6587\u4ef6\u5df2\u8f6c\u6362\u4e3aEXE\u6587\u4ef6\u3002\u81f3\u4e8e\u5982\u4f55\u6253\u5305\u5e94\u7528\u7a0b\u5e8f\u4ee5\u4f9b\u5206\u53d1\uff0c\u53ef\u4ee5\u7ed3\u5408\u7b2c\u4e09\u65b9\u5b89\u88c5\u5305\u5236\u4f5c\u5de5\u5177\uff0c\u4f8b\u5982Inno Setup\u6216NSIS\uff0c\u4e3a\u751f\u6210\u7684EXE\u6587\u4ef6\u521b\u5efa\u4e00\u4e2a\u5b8c\u6574\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
# IDEA\u751f\u6210\u7684JAR\u8f6c\u6210EXE\uff1a\u539f\u7406\u53ca\u8be6\u7ec6\u6559\u7a0b\u5c06Java\u5e94\u7528\u7a0b\u5e8f\u4eceJAR\u6587\u4ef6\u8f6c\u6362\u4e3aEXE\u6587\u4ef6\u6709\u591a\u79cd\u539f\u56e0\uff0c\u5982\uff1a\u6709\u4e9b\u7528\u6237\u53ef\u80fd\u4e0d\u719f\u6089\u6216\u4e0d\u65b9\u4fbf\u4f7f\u7528JAR\u6587\u4ef6\uff0c\u6216\u8005\u4e3a\u4e86\u521b\u5efa\u66f4\u5177\u5438\u5f15\u529b\u548c\u4e13\u4e1a\u611f\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002\u672c<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9495,9496,116,12,52],"topic":[],"class_list":["post-5046","post","type-post","status-publish","format-standard","hentry","category-zhuomianruanjian","tag-matlabexe","tag-phpexe","tag-116","tag-12","tag-52"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/5046","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=5046"}],"version-history":[{"count":0,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/5046\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=5046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=5046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=5046"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=5046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}