Build openjdk 7

Ubuntu 10.04 desktop version is used. 

 

1. Install mercurial forest extension. 

2. "hg fclone http://hg.openjdk.java.net/jdk7/jdk7" to get the source code.

3. Install openjdk 6. Oracle JDK 6 does not work for me. For details, refer to http://mail.openjdk.java.net/pipermail/build-dev/2011-April/004382.html.

4. "sudo apt-get install libxtst-dev" to avoid "X11/extensions/XTest.h: No such file or directory" error.

5. export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk

6. unset JAVA_HOME

7. "make ALLOW_DOWNLOADS=true". Setting ALLOW_DOWNLOADS will download source code bundles for jaxp and jaxws.

 

After the build is finished, find jaxp and jaxws source bundles in build directory and place them in a new directory which is /data/prog/java/openjdk/jdk7-drops in my case. Later, when you build openjdk, run "export ALT_DROPS_DIR=/data/prog/java/openjdk/jdk7-drops". Then run make.

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值