Last active
June 15, 2018 10:36
-
-
Save yetone/ab8d4ef152cbe9dc6449c2ba175c811d to your computer and use it in GitHub Desktop.
compile jdk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Author
Author
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
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