标签:
操作系统: CentOS7 64位
链接:http://pan.baidu.com/s/1o7NzZKm 密码:c8sw
unset CLASSPATH
unset JAVA_HOME
// 语言选项,必须设置
export LANG=C
// Bootstrap JDK的安装路径,必须设置
export ALT_BOOTDIR=/opt/jdk1.7.0_60
// Ant的安装路径
export ANT_HOME=/opt/compile/apache-ant-1.8.2
// 允许自动下载依赖
export ALLOW_DOWNLOADS=true
// 预编译
export USE_PRECOMPILED_HEADER=true
// 64位jdk
export ARCH_DATA_MODEL=64
// 并行编译的线程数,设置为和CPU内核数量一致即可
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=/opt/compile/build-jdk
Sanity check passed
,表示检查通过#-- Build times ----------
Target debug_build
Start 2016-09-05 08:01:45
End 2016-09-05 08:38:17
00:03:31 corba
00:09:33 hotspot
00:00:36 jaxp
00:00:45 jaxws
00:20:55 jdk
00:01:12 langtools
00:36:32 TOTAL
-------------------------
openjdk version "1.7.0-internal-debug"
OpenJDK Runtime Environment (build 1.7.0-internal-debug-root_2016_09_05_07_41-b00)
OpenJDK 64-Bit Server VM (build 24.0-b56-jvmg, mixed mode)
Error: time is more than 10 years from present: 1120165200000
java.lang.RuntimeException: time is more than 10 years from present: 1120165200000
at build.tools.generatecurrencydata.GenerateCurrencyData.makeSpecialCaseEntry(GenerateCurrencyData.java:285)
at build.tools.generatecurrencydata.GenerateCurrencyData.buildMainAndSpecialCaseTables(GenerateCurrencyData.java:225)
at build.tools.generatecurrencydata.GenerateCurrencyData.main(GenerateCurrencyData.java:154)
make[5]: *** [/root/openjdk/build/../build-debug/lib/currency.data] Error 1
make[5]: Leaving directory `/root/Downloads/openjdk/jdk/make/java/java‘
make[4]: *** [all] Error 1
make[4]: Leaving directory `/root/Downloads/openjdk/jdk/make/java‘
make[3]: *** [all] Error 1
make[3]: Leaving directory `/root/Downloads/openjdk/jdk/make‘
make[2]: *** [jdk-build] Error 2
make[2]: Leaving directory `/root/Downloads/openjdk‘
make[1]: *** [generic_debug_build] Error 2
make[1]: Leaving directory `/root/Downloads/openjdk‘
make: *** [build_debug_image] Error 2
解决方法:报错的位置是openjdk目录下jdk/src/share/classes/java/util/CurrencyData.properties文件,将此文件中所有的时间改为10年以内即可
标签:
原文地址:http://www.cnblogs.com/mr-long/p/5841604.html