[JAVA] A shell script that builds the OpenJDK11 source

A shell script that builds the OpenJDK11 source on CentOS 7.2 with debug options.

Confirmation environment

Windows10 VirtualBox 5.2 Vagrant 2.2.0 Guest OS CentOS 7.2 (cpu 2, memory 4GB, disk 100GB) OpenJDK11 jdk-11+28

Shell script

#!/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

Supplement

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

A shell script that builds the OpenJDK11 source
A shell script that builds a Docker image and pushes it to ECR
The story that docker had a hard time
A story about making a Builder that inherits the Builder
A description that only the poster can access
[Java] When writing the source ... A memorandum of understanding ①
21 Load the script from a file and execute it
A command that definitely cleans the local docker environment