Skip to content

Instantly share code, notes, and snippets.

@yetone
Last active June 15, 2018 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yetone/ab8d4ef152cbe9dc6449c2ba175c811d to your computer and use it in GitHub Desktop.
Save yetone/ab8d4ef152cbe9dc6449c2ba175c811d to your computer and use it in GitHub Desktop.
compile jdk
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y wget gcc g++ make ant gawk libcups2-dev libfreetype6-dev libxtst-dev libxrender-dev cpio X11* python-software-properties software-properties-common
RUN apt-get install -y vim
RUN apt-get install -y zip unzip libasound2-dev
RUN apt-get install -y aria2
RUN mkdir -p /usr/lib/jvm && cd /usr/lib/jvm && aria2c -x4 http://bridsys.com/downloads/java/jdk-6u45-linux-x64.bin && \
chmod a+x ./jdk-6u45-linux-x64.bin && ./jdk-6u45-linux-x64.bin
RUN ln -sf -b /usr/lib/jvm/jdk1.6.0_45/jre/bin/java /etc/alternatives/java && ln -sf -b /usr/lib/jvm/jdk1.6.0_45/jre/bin/java /usr/bin/java
unset CLASSPATH
unset JAVA_HOME
export LANG=C
export ALT_BOOTDIR=/usr/lib/jvm/jdk1.6.0_45
export ALLOW_DOWNLOADS=true
export USE_PRECOMPILED_HEADER=true
export ARCH_DATA_MODEL=64
export HOTSPOT_BUILD_JOB=4
export ALT_PARALLEL_COMPILE_JOBS=4
export SKIP_DEBUG_BUILD=false
export SKIP_FASTDEBUG_BUILD=true
export DEBUG_NAME=debug
export ALT_OUTPUTDIR=/root/openjdk/build
@yetone
Copy link
Author

yetone commented Jun 15, 2018

aria2c -x4 https://download.java.net/openjdk/jdk7u75/ri/openjdk-7u75-src-b13-18_dec_2014.zip

unzip openjdk-7u75-src-b13-18_dec_2014.zip

@yetone
Copy link
Author

yetone commented Jun 15, 2018

DISABLE_HOTSPOT_OS_VERSION_CHECK=OK make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment