Jdk编译
https://openjdk.java.net/groups/build/doc/building.html
下载源码: git clone https://github.com/openjdk/jdk.git
Get the complete source code:
git clone https://git.openjdk.java.net/jdk/Run configure:
bash configureIf configure fails due to missing dependencies (to either the toolchain, build tools, external libraries or the boot JDK), most of the time it prints a suggestion on how to resolve the situation on your platform. Follow the instructions, and try running bash configure again.
Run make:
make imagesVerify your newly built JDK:
./build/*/images/jdk/bin/java -versionRun basic tests:
make run-test-tier1需要配置jtreg。
前往此处下载https://ci.adoptopenjdk.net/view/Dependencies/job/jtreg/lastSuccessfulBuild/artifact/
解压
重新配置 bash configure --with-jtreg=<path to jtreg home>
还需配置googletest
git clone -b release-1.8.1 https://github.com/google/googletest
重新配置 bash configure --with-gtest=<path to googletest home>