- 下载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 - 报错解决
Building target 'default (exploded-image)' in configuration 'linux-x86_64-normal-server-release'
Warning: No SCM configuration present and no .src-rev
Compiling 8 files for BUILD_TOOLS_LANGTOOLS
warning: [path] bad path element "/usr/share/ja