[LINUX] OpneJDK8 build on CentOS7_x86_64

Build OpenJDK8 from source code

Reference: http://hg.openjdk.java.net/jdk/jdk/file/tip/doc/building.md

Introducing required packages

Group installation of "Developer Tools" (*) No work is required if "Developer Tools" is checked when installing the OS.

# yum groupinstall -y "Development Tools"

Introducing dependent packages required for openjdk build The bootstrap JDK uses the previous major release JDK (OpenJDK 7) (Reference) http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html#setup

# yum install -y java-1.7.0-openjdk-devel
# yum install -y libXtst-devel libXrender-devel cups-devel freetype-devel alsa-lib-devel libXt-devel fontconfig-devel

Source code DL

Version control tool Mercurial installation

# yum install -y mercurial

###Version 2.6.If it is older than 3, rpm direct DL & install from the original Mercurial
# curl -OL https://www.mercurial-scm.org/release/centos7/RPMS/x86_64/mercurial-4.9-1.x86_64.rpm
# rpm -Uvh mercurial-4.9-1.x86_64.rpm

When the home directory for build is / usr / local / src / openjdk8

# cd /usr/local/src
# hg clone http://hg.openjdk.java.net/jdk8u/jdk8u openjdk8u
# cd openjdk8u
# chmod +x get_source.sh
# ./get_source.sh

configure script execution

# cd /usr/local/src/openjdk8u
# chmod +x configure
# ./configure

make script execution

# cd /usr/local/src/openjdk8u
# make images

Verification of the built JDK

Build artifacts are generated under build / linux-x86_64-normal-server-release / images / j2sdk-image (JRE is under j2jre-image) Check and verify the version with the new java command binary generated

# cd /usr/local/src/openjdk8u
# cd ./build/linux-x86_64-normal-server-release/images/j2sdk-image
# ./bin/java -version

Recommended Posts

OpneJDK8 build on CentOS7_x86_64
Build TensorFlow on Windows
Build XGBoost on Windows
Build Python environment on Windows
Build python environment on windows
docker build python based on alpine
Build and install OpenCV on Windows
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Build a python3 environment on CentOS7
Build wxPython on Ubuntu 20.04 on raspberry pi 4
Build load test tool Locust 1.1 on Docker
Build a Pypi cache server on QNAP
[UE4] Build DedicatedServer on Windows and Linux
Python 2.7, 3.4, 3.5 extension module build environment on Windows
Build Python3 and OpenCV environment on Ubuntu 18.04
Build a python environment on MacOS (Catallina)
How to build Hello, World on #Nix
Build an NFS server on Arch Linux
Build a simple WebDAV server on Linux
Build CGI Server running on Python 3 on Docker
Build an LNPP environment on Amazon Linux 2
Build a Samba server on Arch Linux
Build WordPress on CentOS 8 in LAMP environment
Build jupyter notebook on remote server (CentOS)
Arch on lvm on luks build and initialization
Build a web server on your Chromebook
Build OpenCV-Python environment on Raspberry Pi B +
Build a Python + OpenCV environment on Cloud9
Build CentOS 8 on ESXi 6.7 with minimal configuration