{"id":35944,"date":"2024-11-26T11:35:50","date_gmt":"2024-11-26T03:35:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/35944\/"},"modified":"2024-11-26T11:35:50","modified_gmt":"2024-11-26T03:35:50","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-idea-%e5%92%8c-eclipse-%e5%88%9b%e5%bb%ba%e7%8b%ac%e7%ab%8b%e5%8f%af%e6%89%a7%e8%a1%8c%e7%9a%84-java-%e6%a1%8c%e9%9d%a2%e7%a8%8b%e5%ba%8f%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/35944\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 IDEA \u548c Eclipse \u521b\u5efa\u72ec\u7acb\u53ef\u6267\u884c\u7684 Java \u684c\u9762\u7a0b\u5e8f\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173081433357367.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u4f7f\u7528 IDEA \u548c Eclipse \u521b\u5efa\u72ec\u7acb\u53ef\u6267\u884c\u7684 Java \u684c\u9762\u7a0b\u5e8f\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u4f7f\u7528 IDEA \u548c Eclipse \u521b\u5efa\u72ec\u7acb\u53ef\u6267\u884c\u7684 Java \u684c\u9762\u7a0b\u5e8f\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u7528 IDEA \u6216 Eclipse \u521b\u5efa\u53ef\u6267\u884c JAR\uff08EXE\uff09<\/strong><\/p>\n<p>\u521b\u5efa\u72ec\u7acb\u53ef\u6267\u884c\u7684\u684c\u9762 Java \u7a0b\u5e8f\u6709\u5f88\u591a\u65b9\u6cd5\uff0c\u65e0\u9700\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\u3002\u4e0b\u9762\u6211\u4eec\u5c31\u6765\u770b\u770b\u5982\u4f55\u4f7f\u7528 IDEA \u548c Eclipse \u5185\u7f6e\u7684\u529f\u80fd\u5b8c\u6210\u8fd9\u4e00\u4efb\u52a1\u3002<\/p>\n<p><strong>IDEA<\/strong><\/p>\n<p>\u5728 IntelliJ IDEA \u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 Boxed App \u63d2\u4ef6\u6765\u751f\u6210\u72ec\u7acb\u7684 JAR \u53ef\u6267\u884c\u6587\u4ef6\u3002\u8be5\u63d2\u4ef6\u53ef\u5728 JetBrns Marketplace \u4e2d\u627e\u5230\u3002\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ol>\n<li>\u5b89\u88c5 Boxed App \u63d2\u4ef6\u3002<\/li>\n<li>\u6253\u5f00\u4f60\u7684\u9879\u76ee\u3002<\/li>\n<li>\u5bfc\u822a\u5230 <strong>File<\/strong> &gt; <strong>Project Structure<\/strong>\u3002<\/li>\n<li>\u5728 <strong>Artifacts<\/strong> \u9009\u9879\u5361\u4e2d\uff0c\u5355\u51fb <strong>+<\/strong> &gt; <strong>JAR<\/strong> &gt; <strong>EXE\/MSI Builder<\/strong>\u3002<\/li>\n<li>\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u914d\u7f6e\u8bbe\u7f6e\u3002<\/li>\n<li>\u5355\u51fb <strong>Build<\/strong>\u3002<\/li>\n<\/ol>\n<p><strong>Eclipse<\/strong><\/p>\n<p>\u5728 Eclipse \u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 JPackage \u5de5\u5177\u6765\u521b\u5efa\u72ec\u7acb\u7684\u53ef\u6267\u884c JAR \u6587\u4ef6\u3002\u8be5\u5de5\u5177\u53ef\u5728 Eclipse Marketplace \u4e2d\u627e\u5230\u3002\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u5b89\u88c5 JPackage \u63d2\u4ef6\u3002<\/li>\n<li>\u6253\u5f00\u4f60\u7684\u9879\u76ee\u3002<\/li>\n<li>\u5bfc\u822a\u5230 <strong>Package Explorer<\/strong>\u3002<\/li>\n<li>\u53f3\u952e\u5355\u51fb\u4f60\u7684\u9879\u76ee\uff0c\u7136\u540e\u9009\u62e9 <strong>Export<\/strong>\u3002<\/li>\n<li>\u5728 <strong>Export<\/strong> \u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9 <strong>Java<\/strong> &gt; <strong>JPackage<\/strong>\u3002<\/li>\n<li>\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u914d\u7f6e\u8bbe\u7f6e\u3002<\/li>\n<li>\u5355\u51fb <strong>Finish<\/strong>\u3002<\/li>\n<\/ol>\n<p>\u6709\u5173\u66f4\u591a\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u8003\u63d0\u4f9b\u7684\u5b98\u65b9\u8bba\u575b\u548c StackOverflow \u94fe\u63a5\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u4f7f\u7528 IDEA \u548c Eclipse \u521b\u5efa\u72ec\u7acb\u53ef\u6267\u884c\u7684 Java \u684c\u9762\u7a0b\u5e8f\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528 IDEA \u6216 Eclipse \u521b\u5efa\u53ef\u6267\u884c JAR\uff08EXE\uff09 \u521b\u5efa\u72ec\u7acb\u53ef\u6267\u884c\u7684\u684c\u9762 Java \u7a0b\u5e8f\u6709\u5f88\u591a\u65b9\u6cd5\uff0c\u65e0\u9700\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\u3002\u4e0b\u9762\u6211\u4eec\u5c31\u6765\u770b\u770b\u5982\u4f55\u4f7f\u7528 IDEA \u548c Eclipse \u5185\u7f6e\u7684\u529f\u80fd\u5b8c\u6210\u8fd9\u4e00\u4efb\u52a1\u3002 IDEA \u5728 IntelliJ IDEA \u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 Boxed App \u63d2\u4ef6\u6765\u751f\u6210\u72ec\u7acb\u7684 JAR \u53ef\u6267\u884c\u6587\u4ef6\u3002\u8be5\u63d2\u4ef6\u53ef\u5728 JetBrns Marketplace \u4e2d\u627e\u5230\u3002\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u5b89\u88c5 Boxed App \u63d2\u4ef6\u3002 \u6253\u5f00\u4f60\u7684\u9879\u76ee\u3002 \u5bfc\u822a\u5230 File &gt; Project Structure\u3002 \u5728 Artifacts \u9009\u9879\u5361\u4e2d\uff0c\u5355\u51fb + &gt; JAR &gt; EXE\/MSI Builder\u3002 \u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u914d\u7f6e\u8bbe\u7f6e\u3002 \u5355\u51fb Build\u3002 Eclipse \u5728 Eclipse \u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 JPackage \u5de5\u5177\u6765\u521b\u5efa\u72ec\u7acb\u7684\u53ef\u6267\u884c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-35944","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/35944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=35944"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/35944\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=35944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=35944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=35944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}