A shell script that builds the OpenJDK11 source on CentOS 7.2 with debug options.
Windows10 VirtualBox 5.2 Vagrant 2.2.0 Guest OS CentOS 7.2 (cpu 2, memory 4GB, disk 100GB) OpenJDK11 jdk-11+28
#!/bin/sh
yum -y update
yum -y install java-11-openjdk-devel
yum groupinstall -y "Development Tools"
yum install -y libXtst-devel libXt-devel libXrender-devel libXi-devel cups-devel fontconfig-devel alsa-lib-devel
yum -y install epel-release
yum -y install python-devel python-pip
pip install -U pip
pip install mercurial
hg clone http://hg.openjdk.java.net/jdk/jdk11 -r jdk-11+28
cd jdk11
bash configure --with-debug-level=slowdebug --with-native-debug-symbols=internal
make CONF=linux-x86_64-normal-server-slowdebug all
build/linux-x86_64-normal-server-slowdebug/jdk/bin/java -version
Binaries such as java commands /root/jdk11/build/linux-x86_64-normal-server-slowdebug/jdk/bin It is generated under it.
[root@localhost bin]# /root/jdk11/build/linux-x86_64-normal-server-slowdebug/jdk/bin/java -version
openjdk version "11-internal" 2018-09-25
OpenJDK Runtime Environment (slowdebug build 11-internal+0-adhoc.root.jdk11)
OpenJDK 64-Bit Server VM (slowdebug build 11-internal+0-adhoc.root.jdk11, mixed mode)
Recommended Posts