0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

OpenJDK11 のソースをビルドするシェルスクリプト

Posted at

OpenJDK11 のソースを CentOS 7.2 上でデバッグオプション付きでビルドするシェルスクリプトです。

確認環境

Windows10
VirtualBox 5.2
Vagrant 2.2.0
ゲストOS CentOS 7.2 (cpu 2、メモリ 4GB 、ディスク 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

補足

javaコマンドなどバイナリは
/root/jdk11/build/linux-x86_64-normal-server-slowdebug/jdk/bin
配下に生成されます。

[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)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?