{"id":66104,"date":"2025-05-03T14:41:02","date_gmt":"2025-05-03T06:41:02","guid":{"rendered":"https:\/\/fwq.ai\/blog\/66104\/"},"modified":"2025-05-03T14:41:02","modified_gmt":"2025-05-03T06:41:02","slug":"java%e6%80%8e%e4%b9%88%e5%ae%89%e8%a3%85%e8%bd%af%e4%bb%b6-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/66104\/","title":{"rendered":"java\u600e\u4e48\u5b89\u88c5\u8f6f\u4ef6"},"content":{"rendered":"<blockquote><p>\n  \u5728 java \u4e2d\u5b89\u88c5\u8f6f\u4ef6\u6709\u4ee5\u4e0b\u65b9\u5f0f\uff1a\u901a\u8fc7 java \u5b89\u88c5\u7a0b\u5e8f\uff08jre\uff09\u5b89\u88c5\uff1a\u4e0b\u8f7d\u5e76\u5b89\u88c5 jre\u3002\u8bbe\u7f6e java_home \u73af\u5883\u53d8\u91cf\uff0c\u6307\u5411 jre \u76ee\u5f55\u3002\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\u6dfb\u52a0 jre \u7684 bin \u76ee\u5f55\u3002\u901a\u8fc7 java \u5f00\u53d1\u5de5\u5177\u5305\uff08jdk\uff09\u5b89\u88c5\uff1a\u4e0b\u8f7d\u5e76\u5b89\u88c5 jdk\u3002\u8bbe\u7f6e java_home \u73af\u5883\u53d8\u91cf\uff0c\u6307\u5411 jdk \u76ee\u5f55\u3002\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\u6dfb\u52a0 jdk \u7684 bin \u76ee\u5f55\u3002\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\uff1amaven\uff08mvn install\uff09gradle\uff08gradle install\uff09ant\uff08ant install\uff09\u7b2c\u4e09\u65b9\u5e93\uff08\u5982 j\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202411\/14\/2024111414422549359.jpg\" class=\"aligncenter\" title=\"java\u600e\u4e48\u5b89\u88c5\u8f6f\u4ef6\u63d2\u56fe\" alt=\"java\u600e\u4e48\u5b89\u88c5\u8f6f\u4ef6\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 Java \u4e2d\u5b89\u88c5\u8f6f\u4ef6<\/strong><\/p>\n<p>\u5728 Java \u4e2d\u5b89\u88c5\u8f6f\u4ef6\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 Java \u5b89\u88c5\u7a0b\u5e8f\uff08JRE\uff09\u6216 Java \u5f00\u53d1\u5de5\u5177\u5305\uff08JDK\uff09\u3002<\/p>\n<p><strong>\u4f7f\u7528 JRE<\/strong><\/p>\n<ul>\n<li>\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7684 JRE\u3002<\/li>\n<li>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf JAVA_HOME\uff0c\u6307\u5411 JRE \u7684\u5b89\u88c5\u76ee\u5f55\u3002<\/li>\n<li>\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\u6dfb\u52a0 JRE \u7684 bin \u76ee\u5f55\u3002<\/li>\n<\/ul>\n<p><strong>\u4f7f\u7528 JDK<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7684 JDK\u3002<\/li>\n<li>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf JAVA_HOME\uff0c\u6307\u5411 JDK \u7684\u5b89\u88c5\u76ee\u5f55\u3002<\/li>\n<li>\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\u6dfb\u52a0 JDK \u7684 bin \u76ee\u5f55\u3002<\/li>\n<\/ul>\n<p><strong>\u7279\u5b9a\u8f6f\u4ef6\u7684\u5b89\u88c5<\/strong><\/p>\n<ul>\n<li> <strong>Maven\uff1a<\/strong>\u4f7f\u7528\u547d\u4ee4 mvn install\u3002<\/li>\n<li> <strong>Gradle\uff1a<\/strong>\u4f7f\u7528\u547d\u4ee4 gradle install\u3002<\/li>\n<li> <strong>Ant\uff1a<\/strong>\u4f7f\u7528\u547d\u4ee4 ant install\u3002<\/li>\n<\/ul>\n<p><strong>\u5176\u4ed6\u65b9\u6cd5<\/strong><\/p>\n<ul>\n<li> <strong>\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff1a<\/strong>\u4f8b\u5982 JPackage \u6216 IzPack\u3002<\/li>\n<li> <strong>\u624b\u52a8\u5b89\u88c5\uff1a<\/strong>\u89e3\u538b\u7f29\u8f6f\u4ef6\u5305\u5e76\u5c06\u5176\u653e\u7f6e\u5728\u9002\u5f53\u7684\u4f4d\u7f6e\u3002<\/li>\n<\/ul>\n<p><strong>\u6ce8\u610f\u4e8b\u9879<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u5b89\u88c5\u4e0e\u60a8\u7684\u548c Java \u7248\u672c\u517c\u5bb9\u7684\u8f6f\u4ef6\u3002<\/li>\n<li>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u4ee5\u786e\u4fdd\u60a8\u7684\u7cfb\u7edf\u53ef\u4ee5\u627e\u5230\u5b89\u88c5\u7684\u8f6f\u4ef6\u3002<\/li>\n<li>\u5982\u679c\u60a8\u8ba1\u5212\u5f00\u53d1 Java \u5e94\u7528\u7a0b\u5e8f\uff0c\u5219\u9700\u8981\u4f7f\u7528 JDK\uff0c\u800c JRE \u4ec5\u7528\u4e8e\u8fd0\u884c Java \u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662fjava\u600e\u4e48\u5b89\u88c5\u8f6f\u4ef6\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8IDCBABY\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 java \u4e2d\u5b89\u88c5\u8f6f\u4ef6\u6709\u4ee5\u4e0b\u65b9\u5f0f\uff1a\u901a\u8fc7 java \u5b89\u88c5\u7a0b\u5e8f\uff08jre\uff09\u5b89\u88c5\uff1a\u4e0b\u8f7d\u5e76\u5b89\u88c5 jre\u3002\u8bbe\u7f6e java_home \u73af\u5883\u53d8\u91cf\uff0c\u6307\u5411 jre \u76ee\u5f55\u3002\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\u6dfb\u52a0 jre \u7684 bin \u76ee\u5f55\u3002\u901a\u8fc7 java \u5f00\u53d1\u5de5\u5177\u5305\uff08jdk\uff09\u5b89\u88c5\uff1a\u4e0b\u8f7d\u5e76\u5b89\u88c5 jdk\u3002\u8bbe\u7f6e java_home \u73af\u5883\u53d8\u91cf\uff0c\u6307\u5411 jdk \u76ee\u5f55\u3002\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\u6dfb\u52a0 jdk \u7684 bin \u76ee\u5f55\u3002\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\uff1amaven\uff08mvn install\uff09gradle\uff08gradle install\uff09ant\uff08ant install\uff09\u7b2c\u4e09\u65b9\u5e93\uff08\u5982 j \u5982\u4f55\u5728 Java \u4e2d\u5b89\u88c5\u8f6f\u4ef6 \u5728 Java \u4e2d\u5b89\u88c5\u8f6f\u4ef6\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 Java \u5b89\u88c5\u7a0b\u5e8f\uff08JRE\uff09\u6216 Java \u5f00\u53d1\u5de5\u5177\u5305\uff08JDK\uff09\u3002 \u4f7f\u7528 JRE \u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7684 JRE\u3002 \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf JAVA_HOME\uff0c\u6307\u5411 JRE \u7684\u5b89\u88c5\u76ee\u5f55\u3002 \u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\u6dfb\u52a0 JRE \u7684 bin \u76ee\u5f55\u3002 \u4f7f\u7528 JDK \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b [&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-66104","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/66104","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=66104"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/66104\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=66104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=66104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=66104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}