比起初次编译顺利多了。
- 下载源码
吾下载的是jdk-jdk-9-181.tar.gz。
- 安装OpenJDK8
sudo apt install -y openjdk-8-jdk
- 安装依赖库
sudo apt update sudo apt install -y dh-make build-essential sudo apt install -y libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev sudo apt install -y libasound2-dev libcups2-dev libfontconfig1-dev sudo apt install -y libffi-dev libelf-dev
- 编译
bash configure --disable-warnings-as-errors make images