{"id":39038,"date":"2024-11-26T15:48:16","date_gmt":"2024-11-26T07:48:16","guid":{"rendered":"https:\/\/fwq.ai\/blog\/39038\/"},"modified":"2024-11-26T15:48:16","modified_gmt":"2024-11-26T07:48:16","slug":"java%e5%ae%89%e8%a3%85%e5%90%8e%e6%80%8e%e4%b9%88%e6%a3%80%e6%b5%8b","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/39038\/","title":{"rendered":"java\u5b89\u88c5\u540e\u600e\u4e48\u68c0\u6d4b"},"content":{"rendered":"<blockquote><p>\n  \u5982\u4f55\u68c0\u6d4b java \u5b89\u88c5\uff1a \u4f7f\u7528\u547d\u4ee4\u884c\u7a97\u53e3\uff08\u5982 cmd \u6216\u7ec8\u7aef\uff09\u8fd0\u884c &#8220;java -version&#8221; \u547d\u4ee4\uff0c\u5e76\u786e\u8ba4\u8f93\u51fa\u4e2d\u663e\u793a java \u7248\u672c\u53f7\u5373\u53ef\u5224\u65ad java \u662f\u5426\u5df2\u5b89\u88c5\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202411\/16\/2024111603181891181.jpg\" class=\"aligncenter\" title=\"java\u5b89\u88c5\u540e\u600e\u4e48\u68c0\u6d4b\u63d2\u56fe\" alt=\"java\u5b89\u88c5\u540e\u600e\u4e48\u68c0\u6d4b\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u68c0\u6d4b Java \u5b89\u88c5<\/strong><\/p>\n<p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3<\/strong><\/p>\n<ul>\n<li>Windows\uff1a\u6309 Win + R\uff0c\u8f93\u5165 &#8220;cmd&#8221; \u5e76\u56de\u8f66<\/li>\n<li>macOS\/Linux\uff1a\u6253\u5f00\u7ec8\u7aef<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<pre>java -version<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<li>\n<p><strong>\u68c0\u67e5\u7ed3\u679c\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>\u5982\u679c\u547d\u4ee4\u6210\u529f\u6267\u884c\uff0c\u5219\u4f1a\u663e\u793a\u4ee5\u4e0b\u8f93\u51fa\uff1a<\/p>\n<pre>java version \"x.x.x_xxx\"\nJava(TM) SE Runtime Environment (build x.x.x_xxx-bxx)\nJava HotSpot(TM) 64-Bit Server VM (build x.x.x_xxx-bxx, mixed mode)<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d &#8220;x.x.x_xxx&#8221; \u8868\u793a Java \u7248\u672c\u53f7\u3001\u6784\u5efa\u53f7\u548c\u5176\u4ed6\u4fe1\u606f\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>\u5176\u4ed6\u65b9\u6cd5\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p><strong>Java \u63a7\u5236\u9762\u677f\uff1a<\/strong><\/p>\n<ul>\n<li>\u5728 Windows \u4e0a\uff0c\u8f6c\u5230 &#8220;\u63a7\u5236\u9762\u677f&#8221; &gt; &#8220;\u7a0b\u5e8f\u548c\u529f\u80fd&#8221;\u3002\u67e5\u627e &#8220;Java&#8221; \u6761\u76ee\u5e76\u67e5\u770b\u7248\u672c\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u7cfb\u7edf\u4fe1\u606f\uff1a<\/strong><\/p>\n<ul>\n<li>\u5728 Windows \u4e0a\uff0c\u6309 Win + R\uff0c\u8f93\u5165 &#8220;msinfo32&#8221; \u5e76\u56de\u8f66\u3002\u5728 &#8220;\u7cfb\u7edf\u4fe1\u606f&#8221; \u7a97\u53e3\u4e2d\uff0c\u67e5\u627e &#8220;Java \u865a\u62df\u673a\u7248\u672c&#8221;\u3002<\/li>\n<li>\n<p>\u5728 macOS\/Linux \u4e0a\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>system_profiler SPJavaSoftwareDataType<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u547d\u4ee4 &#8220;java -version&#8221; \u6ca1\u6709\u4ea7\u751f\u8f93\u51fa\uff0c\u5219\u8868\u660e Java \u672a\u5b89\u88c5\u6216\u672a\u6b63\u786e\u914d\u7f6e\u3002<\/li>\n<li>\u786e\u4fdd\u5df2\u5c06 Java \u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84 (PATH)\u3002<\/li>\n<li>\u5982\u679c\u8f93\u51fa\u4e2d\u5305\u542b &#8220;command not found&#8221;\uff0c\u5219\u53ef\u80fd\u9700\u8981\u66f4\u65b0 PATH \u73af\u5883\u53d8\u91cf\uff08Windows\uff09\u6216\u5b89\u88c5 Java\uff08macOS\/Linux\uff09\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662fjava\u5b89\u88c5\u540e\u600e\u4e48\u68c0\u6d4b\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>\u5982\u4f55\u68c0\u6d4b java \u5b89\u88c5\uff1a \u4f7f\u7528\u547d\u4ee4\u884c\u7a97\u53e3\uff08\u5982 cmd \u6216\u7ec8\u7aef\uff09\u8fd0\u884c &#8220;java -version&#8221; \u547d\u4ee4\uff0c\u5e76\u786e\u8ba4\u8f93\u51fa\u4e2d\u663e\u793a java \u7248\u672c\u53f7\u5373\u53ef\u5224\u65ad java \u662f\u5426\u5df2\u5b89\u88c5\u3002 \u5982\u4f55\u68c0\u6d4b Java \u5b89\u88c5 \u6b65\u9aa4\uff1a \u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3 Windows\uff1a\u6309 Win + R\uff0c\u8f93\u5165 &#8220;cmd&#8221; \u5e76\u56de\u8f66 macOS\/Linux\uff1a\u6253\u5f00\u7ec8\u7aef \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b java -version \u767b\u5f55\u540e\u590d\u5236 \u68c0\u67e5\u7ed3\u679c\uff1a \u5982\u679c\u547d\u4ee4\u6210\u529f\u6267\u884c\uff0c\u5219\u4f1a\u663e\u793a\u4ee5\u4e0b\u8f93\u51fa\uff1a java version &#8220;x.x.x_xxx&#8221; Java(TM) SE Runtime Environment (build x.x.x_xxx-bxx) Java HotSpot(TM) 64-Bit Server VM (build x.x.x_xxx-bxx, mixed mode) \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d &#8220;x.x.x_xxx&#8221; \u8868\u793a Java [&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-39038","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/39038","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=39038"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/39038\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=39038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=39038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=39038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}