{"id":38399,"date":"2024-11-26T09:34:08","date_gmt":"2024-11-26T01:34:08","guid":{"rendered":"https:\/\/fwq.ai\/blog\/38399\/"},"modified":"2024-11-26T09:34:08","modified_gmt":"2024-11-26T01:34:08","slug":"java%e6%80%8e%e4%b9%88%e5%ae%89%e8%a3%85%e5%9c%a8%e7%ba%bf","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/38399\/","title":{"rendered":"java\u600e\u4e48\u5b89\u88c5\u5728\u7ebf"},"content":{"rendered":"<blockquote><p>\n  \u5728\u7ebf\u5b89\u88c5 java \u7684\u65b9\u6cd5\u5982\u4e0b\uff1a\u76f4\u63a5\u4e0b\u8f7d\uff1a\u4ece java \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\u7a0b\u5e8f\u5e76\u6267\u884c\u3002\u4f7f\u7528\u5305\u7ba1\u7406\u5668\uff1alinux\uff1asudo apt-get install default-jremacos\uff1abrew install javawindows\uff1achoco install java\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202411\/14\/2024111414331924960.jpg\" class=\"aligncenter\" title=\"java\u600e\u4e48\u5b89\u88c5\u5728\u7ebf\u63d2\u56fe\" alt=\"java\u600e\u4e48\u5b89\u88c5\u5728\u7ebf\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728\u7ebf\u5b89\u88c5 Java<\/strong><\/p>\n<p><strong>\u76f4\u63a5\u4e0b\u8f7d<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a<\/strong><br \/>\u8bbf\u95ee Java \u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/www..com\/java\/technologies\/downloads\/<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a<\/strong><br \/>\u9009\u62e9\u4e0e\u548c\u67b6\u6784\u76f8\u5339\u914d\u7684 Java \u7248\u672c\u3002<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p><strong>\u6b65\u9aa4 3\uff1a<\/strong><br \/>\u70b9\u51fb\u201c\u4e0b\u8f7d Java\u201d\u6309\u94ae\u3002<\/p>\n<p><strong>\u6b65\u9aa4 4\uff1a<\/strong><br \/>\u6587\u4ef6\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u7a0b\u5e8f\u5e76\u6309\u7167\u63d0\u793a\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5305\u7ba1\u7406\u5668<\/strong><\/p>\n<p><strong>Linux<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a<\/strong><br \/>\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868\uff1a<\/p>\n<pre>sudo apt-get update<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a<\/strong><br \/>\u5b89\u88c5 Java\uff1a<\/p>\n<pre>sudo apt-get install default-jre<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>macOS<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a<\/strong><br \/>\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 Homebrew\uff08\u5982\u679c\u5c1a\u672a\u5b89\u88c5\uff09\uff1a<\/p>\n<pre>\/usr\/bin\/ruby -e \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)\"<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a<\/strong><br \/>\u901a\u8fc7 Homebrew \u5b89\u88c5 Java\uff1a<\/p>\n<pre>brew install java<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>Windows<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a<\/strong><br \/>\u4e0b\u8f7d Chocolatey\uff1ahttps:\/\/chocolatey.org\/<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a<\/strong><br \/>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 Java\uff1a<\/p>\n<pre>choco install java<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>java -version<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5982\u679c\u663e\u793a Java \u7248\u672c\u4fe1\u606f\uff0c\u5219\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fjava\u600e\u4e48\u5b89\u88c5\u5728\u7ebf\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>\u5728\u7ebf\u5b89\u88c5 java \u7684\u65b9\u6cd5\u5982\u4e0b\uff1a\u76f4\u63a5\u4e0b\u8f7d\uff1a\u4ece java \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\u7a0b\u5e8f\u5e76\u6267\u884c\u3002\u4f7f\u7528\u5305\u7ba1\u7406\u5668\uff1alinux\uff1asudo apt-get install default-jremacos\uff1abrew install javawindows\uff1achoco install java \u5982\u4f55\u5728\u7ebf\u5b89\u88c5 Java \u76f4\u63a5\u4e0b\u8f7d \u6b65\u9aa4 1\uff1a\u8bbf\u95ee Java \u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/www..com\/java\/technologies\/downloads\/ \u6b65\u9aa4 2\uff1a\u9009\u62e9\u4e0e\u548c\u67b6\u6784\u76f8\u5339\u914d\u7684 Java \u7248\u672c\u3002 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u6b65\u9aa4 3\uff1a\u70b9\u51fb\u201c\u4e0b\u8f7d Java\u201d\u6309\u94ae\u3002 \u6b65\u9aa4 4\uff1a\u6587\u4ef6\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u7a0b\u5e8f\u5e76\u6309\u7167\u63d0\u793a\u64cd\u4f5c\u3002 \u4f7f\u7528\u5305\u7ba1\u7406\u5668 Linux \u6b65\u9aa4 1\uff1a\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868\uff1a sudo apt-get update \u767b\u5f55\u540e\u590d\u5236 \u6b65\u9aa4 2\uff1a\u5b89\u88c5 Java\uff1a sudo apt-get install default-jre \u767b\u5f55\u540e\u590d\u5236 macOS \u6b65\u9aa4 1\uff1a\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 Homebrew\uff08\u5982\u679c\u5c1a\u672a\u5b89\u88c5\uff09\uff1a \/usr\/bin\/ruby -e &#8220;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)&#8221; \u767b\u5f55\u540e\u590d\u5236 [&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-38399","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/38399","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=38399"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/38399\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=38399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=38399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=38399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}