六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 49|回复: 0

Build openjdk 7

[复制链接]

升级  59.33%

112

主题

112

主题

112

主题

举人

Rank: 3Rank: 3

积分
378
 楼主| 发表于 2013-1-28 16:29:36 | 显示全部楼层 |阅读模式
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.
 
 
 
 
 
 
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表