Ubuntu下编译openJdk 6

1;去apache的官方下载 openjdk

2:解压。假设目录 ~/openjdk

3:配置一下系统环境,

sudo aptitude build-dep openjdk-6

sudo aptitude install openjdk-6-jdk libmotif-dev

export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk ALLOW_DOWNLOADS=true

4:cd  ~/openjdk

make

===================================================================

如果不加ALLOW_DOWNLOAD=true, 会报Cannot find source for project jaxp这样的错误。

-----------------------------------------------

不加 LANG=C 会报 WARNING: LANG has been set to en_US.UTF-8, this can cause build failures.

Try setting LANG to "C".

同时编译会出现error

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwggjx.html