-
下载openjdk
https://github.com/openjdk/jdk11u/tags 选择gz压缩包,而不是zip -
安装jdk11
https://www.oracle.com/java/technologies/downloads/#java11 -
安装依赖库
sudo apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev libasound2-dev libcups2-dev
-
编译
chmod +x configure
./configure
make
编译成功
Compiling 4 files for BUILD_JIGSAW_TOOLS
Stopping sjavac server
Finished building target 'default (exploded-image)' in configuration 'linux-x86_64-normal-server-release'
- 产物位置
build/linux-x86_64-normal-server-release/jdk/bin - 参考
https://blog.csdn.net/quantum7/article/details/125064687