{"id":2200,"date":"2024-06-08T09:23:27","date_gmt":"2024-06-08T01:23:27","guid":{"rendered":"https:\/\/wp.minicoda.com\/?p=2200"},"modified":"2024-10-13T16:09:00","modified_gmt":"2024-10-13T08:09:00","slug":"%e5%a6%82%e4%bd%95%e7%8e%af%e5%a2%83windows%e7%89%88%e6%9c%acjdk","status":"publish","type":"post","link":"https:\/\/wp.minicoda.com\/index.php\/%e5%a6%82%e4%bd%95%e7%8e%af%e5%a2%83windows%e7%89%88%e6%9c%acjdk\/","title":{"rendered":"\u5982\u4f55\u7f16\u8bd1Windows\u7248\u672cJDK?"},"content":{"rendered":"\n<p>  Windows\u7248\u672cJDK\u53ef\u4f7f\u7528Cygwin\/WSL + VC++\u4e24\u79cd\u7f16\u8bd1\u65b9\u5f0f\u3002\u5982\u4e0b\u4ee5Cygwin + VC++ \u7f16\u8bd1JDK <strong><em>23<\/em><\/strong>\u4e3a\u4f8b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b89\u88c5Cygwin 64\u4f4d\u73af\u5883\uff1agcc\/g++\/zip\/unzip\/autoconf\/make\u4e3a\u5fc5\u9009\u9879\u3002<\/li>\n\n\n\n<li>\u5b89\u88c5VS 2019\u62162022\uff1a<br>1 \u76ee\u5f55\u4e0d\u8981\u6709\u7a7a\u683c\uff1b<br>2 \u9700\u8981\u6709\u82f1\u6587\u8bed\u8a00\u5305.<br>\u5047\u8bbe\u5b89\u88c5\u4f4d\u7f6e\uff1a<strong><em>D:\\ProgramFiles\\MicrosoftVisualStudio\\2019\\Community<\/em><\/strong><\/li>\n\n\n\n<li>\u4e0b\u8f7dJDK source code (i.e.&nbsp;<a href=\"https:\/\/github.com\/openjdk\/jdk\/tree\/jdk-23%2B25\"><strong><em>GitHub \u2013 openjdk\/jdk at jdk-23+25<\/em><\/strong><\/a>).<\/li>\n\n\n\n<li>\u4e0b\u8f7dbootstrap \u65e7\u7248\u672cJDK<br>\u4f8b\u5982\u4e0b\u8f7d\u7684\u662f<strong><em>jdk-22.0.1<\/em><\/strong>(\u5982\u679c\u4f60\u7684JDK source code\u7248\u672c\u66f4\u4f4e\uff0c\u8981\u9009\u62e9\u66f4\u4f4e\u7684bootstrap JDK\u7248\u672c).<br>  1 \u5c06jdk-22.0.1 PATH\u914d\u7f6e\u5230Windows\u73af\u5883\u53d8\u91cf\uff0c\u5e76\u8bbe\u5b9a\u4e3a\u4f18\u5148\u7684java\u7a0b\u5e8f\u3002<br><strong><em>    F:\\tools\\openjdk-22.0.1_windows-x64_bin\\bin<br>    F:\\tools\\openjdk-22.0.1_windows-x64_bin\\jre\\bin<\/em><\/strong><br>  2 \u65b0\u6253\u5f00\u7ec8\u7aefcmd\uff0c\u786e\u8ba4java -version\u662f<strong><em>22.0.1<\/em><\/strong>.<\/li>\n\n\n\n<li>\u6253\u5f00Cygwin\u7ec8\u7aef\uff0c\u5207\u6362\u5230JDK\u76ee\u5f55<br>cd <strong><em>\/cygdrive\/h\/sources\/jdk<\/em><\/strong><\/li>\n\n\n\n<li>\u914d\u7f6e\u7f16\u8bd1\u76ee\u6807\u4e3aWindows\u7248\u672cx64\u67b6\u6784\u7684JDK\u3001bootstrap JDK\u4e3a\u9ed8\u8ba4\u7684<strong><em>jdk-22.0.1<\/em><\/strong><br>bash configure --with-tools-dir=<strong><em>\/cygdrive\/d\/ProgramFiles\/MicrosoftVisualStudio\/2019\/Community\/VC\/Auxiliary\/Build<\/em><\/strong><\/li>\n\n\n\n<li>\u7f16\u8bd1<br>make <strong><em>JOBS=8<\/em><\/strong> images 2&gt;&amp;1 | tee b.log<br>  \u2013 \u6700\u7ec8\u7f16\u8bd1\u7684JDK\u76ee\u5f55\uff1a<strong><em>build\\windows-x86_64-server-release\\images\\jdk<\/em><\/strong><br>  - \u5982\u679c\u53ea\u7f16\u8bd1JDK\uff0c\u53ef\u7528make <strong><em>JOBS=8<\/em><\/strong> product-images<\/li>\n<\/ul>\n\n\n\n<p>  \u6ce8\u610f\uff1a<br>      1 \u7f51\u7edc\u4e0a\u6709\u4e0d\u5c11\u662f\u7f16\u8bd1JDK\u66f4\u65e9\u7248\u672c\u7684\u6587\u7ae0\uff0c\u6709\u4e0d\u5c11\u9519\u8bef\u5c31\u5df2\u7ecf\u5728\u6700\u65b0\u7248\u4fee\u6389\u4e86\uff0c\u4e0d\u9700\u8981\u518d\u5904\u7406\u3002<br>      2 freetype\u5982\u679c\u4e4b\u524d\u6709\u5b89\u88c5\u8fc7\u5c31\u4e0d\u9700\u8981\u7279\u522b\u53bb\u7f16\u8bd1\u5b89\u88c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u7248\u672cJDK\u53ef\u4f7f\u7528Cygwin\/WSL + VC++\u4e24\u79cd\u7f16\u8bd1\u65b9\u5f0f\u3002\u5982\u4e0b\u4ee5Cygwin + VC++ \u7f16\u8bd1JDK 23\u4e3a\u4f8b\u3002 \u6ce8\u610f\uff1a 1 \u7f51\u7edc\u4e0a\u6709\u4e0d\u5c11\u662f\u7f16\u8bd1JDK\u66f4\u65e9\u7248\u672c\u7684\u6587\u7ae0\uff0c\u6709\u4e0d\u5c11\u9519\u8bef\u5c31&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299],"tags":[],"class_list":["post-2200","post","type-post","status-publish","format-standard","hentry","category-think"],"views":125,"_links":{"self":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/2200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/comments?post=2200"}],"version-history":[{"count":3,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/2200\/revisions"}],"predecessor-version":[{"id":2895,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/2200\/revisions\/2895"}],"wp:attachment":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/media?parent=2200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/categories?post=2200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/tags?post=2200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}