{"id":66157,"date":"2025-05-03T16:52:57","date_gmt":"2025-05-03T08:52:57","guid":{"rendered":"https:\/\/fwq.ai\/blog\/66157\/"},"modified":"2025-05-03T16:52:57","modified_gmt":"2025-05-03T08:52:57","slug":"java%e6%80%8e%e4%b9%88%e5%ae%89%e8%a3%85%e8%af%ad%e8%a8%80-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/66157\/","title":{"rendered":"java\u600e\u4e48\u5b89\u88c5\u8bed\u8a00"},"content":{"rendered":"<blockquote><p>\n  \u8981\u5b89\u88c5 java\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a\u4e0b\u8f7d java \u5f00\u53d1\u5de5\u5177\u5305 (jdk)\u3002\u5b89\u88c5 jdk\u3002\u8bbe\u7f6e path \u73af\u5883\u53d8\u91cf\u3002\u9a8c\u8bc1\u5b89\u88c5\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202411\/15\/2024111502394812459.jpg\" class=\"aligncenter\" title=\"java\u600e\u4e48\u5b89\u88c5\u8bed\u8a00\u63d2\u56fe\" alt=\"java\u600e\u4e48\u5b89\u88c5\u8bed\u8a00\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5b89\u88c5 Java \u8bed\u8a00<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u4e0b\u8f7d Java \u5f00\u53d1\u5de5\u5177\u5305 (JDK)<\/strong><\/p>\n<p>\u4ece Oracle \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u7528\u4e8e\u60a8\u7684 JDK\u3002<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a\u5b89\u88c5 JDK<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u6587\u4ef6\u5e76\u6309\u7167\u63d0\u793a\u64cd\u4f5c\u3002\u786e\u4fdd\u6309\u7167\u8bf4\u660e\u9009\u62e9\u6b63\u786e\u7684\u5b89\u88c5\u4f4d\u7f6e\u548c\u7ec4\u4ef6\u3002<\/p>\n<p><strong>\u6b65\u9aa4 3\uff1a\u8bbe\u7f6e PATH \u73af\u5883\u53d8\u91cf<\/strong><\/p>\n<p>\u5728\u73af\u5883\u53d8\u91cf\u4e2d\u52a0\u5165 JDK \u7684<strong>bin<\/strong>\u6587\u4ef6\u5939\u8def\u5f84\u3002<\/p>\n<ul>\n<li>\n<p><strong>Windows\uff1a<\/strong><\/p>\n<ul>\n<li>\u53f3\u952e\u5355\u51fb\u201c\u6b64\u7535\u8111\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002<\/li>\n<li>\u5355\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728\u201c\u73af\u5883\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u7f16\u8f91\u201cPath\u201d\u53d8\u91cf\u5e76\u5c06 JDK \u7684<strong>bin<\/strong>\u6587\u4ef6\u5939\u8def\u5f84\u6dfb\u52a0\u5230\u672b\u5c3e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>macOS \u548c Linux\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>\u6253\u5f00\u7ec8\u7aef\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>export PATH=$PATH:\/path\/to\/jdk\/bin<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u5c06\/path\/to\/jdk\/bin\u66ff\u6362\u4e3a JDK \u7684<strong>bin<\/strong>\u6587\u4ef6\u5939\u8def\u5f84\u3002<\/p>\n<p><strong>\u6b65\u9aa4 4\uff1a\u9a8c\u8bc1\u5b89\u88c5<\/strong><\/p>\n<p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/p>\n<pre>java -version<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u5c06\u663e\u793a Java \u7248\u672c\u548c\u5b89\u88c5\u4fe1\u606f\u3002<\/p>\n<p><strong>\u53ef\u9009\u6b65\u9aa4\uff1a\u5b89\u88c5 Java \u5f00\u53d1\u5de5\u5177 (JDT)<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u8981\u4f7f\u7528 Eclipse \u7b49 Java IDE\uff0c\u5219\u8fd8\u9700\u8981\u5b89\u88c5 JDT\u3002<\/p>\n<ul>\n<li>\n<p><strong>Eclipse\uff1a<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 Eclipse \u5e76\u8f6c\u5230\u201c\u5e2e\u52a9\u201d&gt;\u201c\u5b89\u88c5\u65b0\u8f6f\u4ef6\u201d\u3002<\/li>\n<li>\u5728\u201c\u5de5\u4f5c\u4e0e\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u4ee5\u4e0b URL\uff1ahttps:\/\/download.eclipse.org\/jdtls\/milestones\/latest\/<\/li>\n<li>\u9009\u4e2d\u201cJava Development Tools\u201d\u590d\u9009\u6846\u5e76\u5355\u51fb\u201c\u5b89\u88c5\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5176\u4ed6 IDE\uff1a<\/strong><\/p>\n<ul>\n<li>\u67e5\u770b IDE \u6587\u6863\u4ee5\u4e86\u89e3\u7279\u5b9a\u7684 JDT \u5b89\u88c5\u8bf4\u660e\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u4e0b\u8f7d\u6b63\u786e\u7248\u672c\u7684 JDK\uff0c\u4e0e\u60a8\u6b63\u5728\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u67b6\u6784\u76f8\u5339\u914d\u3002<\/li>\n<li>\u5982\u679c\u5728\u8bbe\u7f6e PATH \u53d8\u91cf\u65f6\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b98\u65b9\u6587\u6863\u3002<\/li>\n<li>\u5bf9\u4e8e\u5176\u4ed6\u95ee\u9898\u6216\u9ad8\u7ea7\u914d\u7f6e\uff0c\u8bf7\u53c2\u8003 Oracle \u7684 Java \u6587\u6863\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662fjava\u600e\u4e48\u5b89\u88c5\u8bed\u8a00\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>\u8981\u5b89\u88c5 java\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a\u4e0b\u8f7d java \u5f00\u53d1\u5de5\u5177\u5305 (jdk)\u3002\u5b89\u88c5 jdk\u3002\u8bbe\u7f6e path \u73af\u5883\u53d8\u91cf\u3002\u9a8c\u8bc1\u5b89\u88c5\u3002 \u5982\u4f55\u5b89\u88c5 Java \u8bed\u8a00 \u6b65\u9aa4 1\uff1a\u4e0b\u8f7d Java \u5f00\u53d1\u5de5\u5177\u5305 (JDK) \u4ece Oracle \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u7528\u4e8e\u60a8\u7684 JDK\u3002 \u6b65\u9aa4 2\uff1a\u5b89\u88c5 JDK \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u53cc\u51fb\u4e0b\u8f7d\u7684\u5b89\u88c5\u6587\u4ef6\u5e76\u6309\u7167\u63d0\u793a\u64cd\u4f5c\u3002\u786e\u4fdd\u6309\u7167\u8bf4\u660e\u9009\u62e9\u6b63\u786e\u7684\u5b89\u88c5\u4f4d\u7f6e\u548c\u7ec4\u4ef6\u3002 \u6b65\u9aa4 3\uff1a\u8bbe\u7f6e PATH \u73af\u5883\u53d8\u91cf \u5728\u73af\u5883\u53d8\u91cf\u4e2d\u52a0\u5165 JDK \u7684bin\u6587\u4ef6\u5939\u8def\u5f84\u3002 Windows\uff1a \u53f3\u952e\u5355\u51fb\u201c\u6b64\u7535\u8111\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002 \u5355\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u3002 \u5728\u201c\u73af\u5883\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u7f16\u8f91\u201cPath\u201d\u53d8\u91cf\u5e76\u5c06 JDK \u7684bin\u6587\u4ef6\u5939\u8def\u5f84\u6dfb\u52a0\u5230\u672b\u5c3e\u3002 macOS \u548c Linux\uff1a \u6253\u5f00\u7ec8\u7aef\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a export PATH=$PATH:\/path\/to\/jdk\/bin \u767b\u5f55\u540e\u590d\u5236 \u5c06\/path\/to\/jdk\/bin\u66ff\u6362\u4e3a JDK \u7684bin\u6587\u4ef6\u5939\u8def\u5f84\u3002 \u6b65\u9aa4 4\uff1a\u9a8c\u8bc1\u5b89\u88c5 \u5728\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u9a8c\u8bc1\u5b89\u88c5\uff1a java -version \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u5c06\u663e\u793a [&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-66157","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/66157","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=66157"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/66157\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=66157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=66157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=66157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}