The content of this article is about the detailed steps of compiling JDK in Linux environment. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
Environment preparation
##Compilation steps
1. Install JDK compilation dependencies and execute the command:sudo apt-get install build-essential gawk m4 libasound2-dev libcups2-dev libxrender-dev xorg-dev xutils-dev x11proto-print-dev binutils libmotif3 libmotif-dev ant
unzip openjdk-7u75-src-b13-18_dec_2014.zip
./jdk-6u45-linux-x64.bin
#!/bin/bash export LANG=C export ALT_BOOTDIR=/home/javon/jdk/jdk1.6.0_45 #允许自动下载依赖包 export ALLOW_DOWNLOADS=true#使用预编译头文件,以提升便以速度 export USE_PRECOMPILED_HEADER=true#要编译的内容 export BUILD_LANGTOOLS=true export BUILD_JAXP=true export BUILD_JAXWS=true export BUILD_CORBA=true export BUILD_HOSTPOT=true export BUILD_JDK=true#要编译的版本 export SKIP_DEBUG_BUILD=false export SKIP_FASTDEBUG_BUILD=true export DEBUG_NAME=debug #避免javaws和浏览器Java插件等的build BUILD_DEPLOY=false#不build安装包 BUILD_INSTALL=false#设置存放编译结果的目录 export ALT_OUTPUTDIR=/home/javon/jdk/openjdk-7-src/build unset CLASSPATH unset JAVA_HOME make sanity make 2>&1 | tee $ALT_OUTPUTDIR/build.log
Description: ALT_BOOTDIR is the Bootstrap JDK installation directory. 5. Modify a file in the Open JDK source code,
AZ=AZM;2015-12-31-20-00-00;AZN MZ=MZM;2016-06-30-22-00-00;MZN RO=ROL;2015-06-30-21-00-00;RON TR=TRL;2014-12-31-22-00-00;TRY VE=VEB;2018-01-01-04-00-00;VEF
#cd <OpenJDK源码目录>cd /home/javon/jdk/openjdk/sh build.sh
Problems encountered during the compilation process
1. The operating system version is not supported. This OS is not supported.
Modify the file
SUPPORTED_OS_VERSION = 2.4% 2.5% 2.6% 3% 4%
The above is the detailed content of Detailed steps for compiling JDK in Linux environment. For more information, please follow other related articles on the PHP Chinese website!