The Ubuntu version is 16.04.5 LTS. In this environment, download the source code of OpenJDK11 in the official recommended way. The official document address: https://hg.openjdk.java.net/jdk/jdk11/raw-file/tip/doc/building.html#getting-the-source-code
There are three steps in total: first install pip, then use pip to install Mercurial, and then use Mercurial to download the source code;
apt-get install python-pip
pip install mercurial
hg clone http://hg.openjdk.java.net/jdk/jdk11
Note that this step is a painful process, during which it has experienced a long time of waiting, failure, and retries, and finally successfully completed using Amazon's AWS server. The server room is in the western United States (Oregon). The prompt after successful operation is as follows:
At this time, a folder named jdk11 can be seen in the current directory, which is the source code of OpenJDK11;
Recommended Posts