首页 > 学院 > 开发设计 > 正文

Ubuntu14.04.364位环境下openjdk7编译

2019-11-14 15:01:37
字体:
来源:转载
供稿:网友

系统环境:Ubuntu14.04.3 -amd64 in VMWare
1.安装openjdk7依赖

sudo apt-get build-dep openjdk-7sudo apt-get install openjdk-7-jdksudo apt-get install build-essential gawk m4 libasound2-dev libcups2-dev libxrender-dev xorg-dev xutils-dev x11PRoto-print-dev antsudo mkdir /usr/X11R6cd /usr/X11R6/sudo ln -s -T /usr/lib lib

2.安装Oracle jdk到/usr/lib/jvm 
3.将/src/share/classes/java/util目录下的CurrencyData.properties文件中的时间改为当前时间10年以内 
4.编译脚本:

#!/bin/bashexport LANG=Cexport ALT_BOOTDIR=/usr/lib/jvm/jdk1.7.0_17 export ALT_DEVTOOLS_PATH=/usr/binexport ALLOW_DOWNLOADS=true #是否需要自动下载,jaxp,jaws可以自动下载export SKip_DEBUG_BUILD=false #是否跳过编译debug版export SKIP_FASTDEBUG_BUILD=false #是否跳过编译fastdebug版export DEBUG_NAME=debugexport HOTSPOT_BUILD_JOBS=4 export ALL_PARALLEL_COMPILE_JOBS=4export ALT_DEVTOOLS_PATH=/usr/binexport SKIP_COMPARE_IMAGES=trueexport USE_PRECOMPILED_HEADER=trueBUILD_DEPLOY=falseBUILD_INSTALL=falseunset CLASSPATHunset JAVA_HOMEmake sanity & make all 2>&1

运行编译脚本。


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表