compilingBefore compiling JDK7, install a JDK6 version, because some Java files need to be compiled, configuration update source, yum-y Groupinstall ' base ', yum-y install make; installation package, yum-y install Alsa-lib -devel cups-devel libxi-devel gcc gcc-c++ freetype ld-linux.so.2 ant* libx* freetype* Configure environment variables,
unset CLASSPATH
unset java_home
export lang=c
export skip_debug_build=false
export Skip_fastdebug_ Build=true
export debug_name=debug
export alt_bootdir=/usr/java/jdk1.6.0_45
Download source code, reduce compression, verify the configuration, display sanity check passed. #表示ok了
wget http://download.java.net/openjdk/jdk7u40/promoted/b43/openjdk-7u40-fcs-src-b43-26_aug_2013.zip?q=download/ Openjdk/jdk7u40/promoted/b43/openjdk-7u40-fcs-src-b43-26_aug_2013.zip
Unzip Openjdk-7u40-fcs-src-b43-26_aug _2013.zip
CD openjdk make
Sanity
Execute compile command
Make all arch_data_model=64 Allow_downloads=tru
Check compilation results
./build/linux-amd64/bin/java-version
FAQ
Error:time is the than years from present:1104530400000, modified./jdk/src/share/classes/java/util/ currencydata.properties535 Line
534 # TURKEY
535 tr=trl;2010-12-31-22-00-00; TRY