{"id":874,"date":"2013-07-11T15:37:35","date_gmt":"2013-07-11T07:37:35","guid":{"rendered":"http:\/\/www.hawkwithwind.net\/blog\/?p=874"},"modified":"2013-07-11T15:43:17","modified_gmt":"2013-07-11T07:43:17","slug":"windows%e4%bd%bf%e7%94%a8%e5%85%b6%e4%bb%96%e7%89%88%e6%9c%acjava","status":"publish","type":"post","link":"https:\/\/www.hawkwithwind.net\/blog\/2013\/07\/11\/windows%e4%bd%bf%e7%94%a8%e5%85%b6%e4%bb%96%e7%89%88%e6%9c%acjava\/","title":{"rendered":"windows\u4f7f\u7528\u5176\u4ed6\u7248\u672cjava"},"content":{"rendered":"<p>\u6362\u5230\u81ea\u5df1\u7684\u7b14\u8bb0\u672c\u4e0a\u505a\u5b89\u5353\u5f00\u53d1\uff0c\u51fa\u73b0\u4e86\u4e00\u4e2a\u5f88\u70e6\u4eba\u7684\u95ee\u9898\uff0c\u5c31\u662f\u4e00\u76f4\u62a5<br \/>\n<code>Can't bind to local 86XX for debugger<\/code><br \/>\n\u8fd9\u6837\u4e00\u4e2a\u9519\u3002\u7f51\u4e0a\u67e5\u4e86\u4e00\u4e0b\uff0c\u539f\u56e0\u662fjre7\u4e0d\u517c\u5bb9\u7684\u95ee\u9898\uff0c\u9700\u8981\u9000\u56de\u5230jre6\u624d\u884c\u3002\u6211\u5b89\u88c5\u4e86jre6\uff0c\u53c8\u4e0d\u60f3\u5378\u8f7djre7\uff0c\u5c31\u60f3\uff0c\u6539\u4e86\u73af\u5883\u53d8\u91cf\u7684PATH\u5e94\u8be5\u5c31\u597d\u4e86\u5427\u3002<br \/>\n<code><br \/>\nJAVA_HOME = \"C:\\Program Files\\Java\\jre6\"<br \/>\nPATH = \"...;%JAVA_HOME%\\bin\"<br \/>\n<\/code><br \/>\n\u53ef\u662f\u4fee\u6539\u4e4b\u540e\uff0c\u8fdb\u5165\u547d\u4ee4\u884c\u8f93\u5165java -version\u4e00\u770b\uff0c\u95ee\u9898\u6ca1\u6709\u89e3\u51b3\uff0c\u8fd8\u662fjava 1.7\u7684\u7248\u672c\u3002\u8fd9\u5f88\u5947\u602a\u554a\u3002<br \/>\n<a href=\"http:\/\/www.hawkwithwind.net\/blog\/wp-content\/uploads\/2013\/07\/java_in_system32.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.hawkwithwind.net\/blog\/wp-content\/uploads\/2013\/07\/java_in_system32.png\" alt=\"java_in_system32\" width=\"264\" height=\"125\" class=\"aligncenter size-full wp-image-875\" \/><\/a><br \/>\n\u7f51\u4e0a\u7ee7\u7eed\u67e5\u4e86\u4e00\u4e0b\uff0c\u539f\u6765java installer\u4f1a\u628ajava.exe\u590d\u5236\u4e00\u4efd\u5230windows\/system32\u4e0b\u9762\uff0c\u800cPATH\u7684\u7279\u70b9\u662f\u5148\u5230\u5148\u5f97\uff0c\u5728\u7cfb\u7edf\u76ee\u5f55\u627e\u5230java.exe\u540e\uff0c\u5c31\u76f4\u63a5\u6267\u884c\u4e86\u3002\u9700\u8981\u628ajre\\bin\u7684\u76ee\u5f55\u5728PATH\u4e2d\u8bbe\u7f6e\u5230\u7cfb\u7edf\u76ee\u5f55\u4e4b\u524d\uff0c\u5c31\u89e3\u51b3\u95ee\u9898\u4e86\u3002<br \/>\n<code><br \/>\nJAVA_HOME = \"C:\\Program Files\\Java\\jre6\"<br \/>\nPATH = \"%JAVA_HOME%\\bin;...\"<br \/>\n<\/code><\/p>\n<p>\u987a\u5e26\u518d\u9a82\u4e00\u53e5java\uff0c\u6bcf\u4e2a\u4e3b\u8981\u7248\u672c\u5347\u7ea7\u90fd\u95f9\u51fa\u4e00\u5806\u4e0d\u517c\u5bb9\u6765\uff0c\u4e0d\u77e5\u600e\u4e48\u60f3\u7684\u3002\u4e00\u5904\u5f00\u53d1\u5230\u5904\u6267\u884c\u8fd9\u4e2a\u53e3\u53f7\u5509\u3002\u3002\u3002\u4e0d\u63d0\u3002\u3002<br \/>\n\u53c8\u8bb0\u8d77\u90a3\u65f6\u5019\u5728\u516c\u53f8\u914d\u7f6eJira\u7cfb\u7edf\u7684\u75db\u82e6\u4e86\u3002\u3002<\/p>\n<p>\u53c2\u8003<\/p>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/13533930\/cant-bind-to-local-86xx-for-debugger\"> Can&#8217;t bind to local 86XX for debugger<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/5492937\/windows-ignores-java-home-how-to-set-jdk-as-default\">Windows ignores JAVA_HOME: how to set JDK as default?<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6362\u5230\u81ea\u5df1\u7684\u7b14\u8bb0\u672c\u4e0a\u505a\u5b89\u5353\u5f00\u53d1\uff0c\u51fa\u73b0\u4e86\u4e00\u4e2a\u5f88\u70e6\u4eba\u7684\u95ee\u9898\uff0c\u5c31\u662f\u4e00\u76f4\u62a5 Can&#8217;t bind to local 86XX for debugger \u8fd9\u6837\u4e00\u4e2a\u9519\u3002\u7f51\u4e0a\u67e5\u4e86\u4e00\u4e0b\uff0c\u539f\u56e0\u662fjre7\u4e0d\u517c\u5bb9\u7684\u95ee\u9898\uff0c\u9700\u8981\u9000\u56de\u5230jre6\u624d\u884c\u3002\u6211\u5b89\u88c5\u4e86jre6\uff0c\u53c8\u4e0d\u60f3\u5378\u8f7djre7\uff0c\u5c31\u60f3\uff0c\u6539\u4e86\u73af\u5883\u53d8\u91cf\u7684PATH\u5e94\u8be5\u5c31\u597d\u4e86\u5427\u3002 JAVA_HOME = &#8220;C:\\Program Files\\Java\\jre6&#8221; PATH = &#8220;&#8230;;%JAVA_HOME%\\bin&#8221; \u53ef\u662f\u4fee\u6539\u4e4b\u540e\uff0c\u8fdb\u5165\u547d\u4ee4\u884c\u8f93\u5165java -version\u4e00\u770b\uff0c\u95ee\u9898\u6ca1\u6709\u89e3\u51b3\uff0c\u8fd8\u662fjava 1.7\u7684\u7248\u672c\u3002\u8fd9\u5f88\u5947\u602a\u554a\u3002 \u7f51\u4e0a\u7ee7\u7eed\u67e5\u4e86\u4e00\u4e0b\uff0c\u539f\u6765java installer\u4f1a\u628ajava.exe\u590d\u5236\u4e00\u4efd\u5230windows\/system32\u4e0b\u9762\uff0c\u800cPATH\u7684\u7279\u70b9\u662f\u5148\u5230\u5148\u5f97\uff0c\u5728\u7cfb\u7edf\u76ee\u5f55\u627e\u5230java.exe\u540e\uff0c\u5c31\u76f4\u63a5\u6267\u884c\u4e86\u3002\u9700\u8981\u628ajre\\bin\u7684\u76ee\u5f55\u5728PATH\u4e2d\u8bbe\u7f6e\u5230\u7cfb\u7edf\u76ee\u5f55\u4e4b\u524d\uff0c\u5c31\u89e3\u51b3\u95ee\u9898\u4e86\u3002 JAVA_HOME = &#8220;C:\\Program Files\\Java\\jre6&#8221; PATH = &#8220;%JAVA_HOME%\\bin;&#8230;&#8221; \u987a\u5e26\u518d\u9a82\u4e00\u53e5java\uff0c\u6bcf\u4e2a\u4e3b\u8981\u7248\u672c\u5347\u7ea7\u90fd\u95f9\u51fa\u4e00\u5806\u4e0d\u517c\u5bb9\u6765\uff0c\u4e0d\u77e5\u600e\u4e48\u60f3\u7684\u3002\u4e00\u5904\u5f00\u53d1\u5230\u5904\u6267\u884c\u8fd9\u4e2a\u53e3\u53f7\u5509\u3002\u3002\u3002\u4e0d\u63d0\u3002\u3002 \u53c8\u8bb0\u8d77\u90a3\u65f6\u5019\u5728\u516c\u53f8\u914d\u7f6eJira\u7cfb\u7edf\u7684\u75db\u82e6\u4e86\u3002\u3002 \u53c2\u8003 Can&#8217;t bind to local 86XX for debugger Windows ignores JAVA_HOME: how to set JDK as default?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[58,67,57],"class_list":["post-874","post","type-post","status-publish","format-standard","hentry","category-post","tag-android","tag-java","tag-programinwindows"],"_links":{"self":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/comments?post=874"}],"version-history":[{"count":3,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/874\/revisions"}],"predecessor-version":[{"id":877,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/posts\/874\/revisions\/877"}],"wp:attachment":[{"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/media?parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/categories?post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hawkwithwind.net\/blog\/wp-json\/wp\/v2\/tags?post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}