openjdk 编译时出现jaxp145_01.zip moved to 错误

Linux CENTOS下编译openjdk7

Linux centos下编译OpenJDK7-详细指南

openjdk 编译时出现jaxp145_01.zip moved to 错误

编译openjdk时出现如下错误,看到提示应该是url被redirect了。

刚开始以为是编译时不能处理redirect呢,后来发现redirect后的文件只能下载22%,就停住了。无奈。。。

-jaxp_src-url-bundle:
[echo] Downloading from http://download.java.net/jaxp/1.4.5/jaxp145_01.zip
[delete] Deleting: /home/user/source/openjdk/build/linux-amd64/jaxp/drop/bundles/jaxp145_01.zip.temp
[get] Getting: http://download.java.net/jaxp/1.4.5/jaxp145_01.zip
[get] To: /home/user/source/openjdk/build/linux-amd64/jaxp/drop/bundles/jaxp145_01.zip.temp
[get] http://download.java.net/jaxp/1.4.5/jaxp145_01.zip moved to http://dlc.sun.com.edgesuite.net/jaxp/1.4.5/jaxp145_01.zip

 

解决方案:

在openjdk的根目录,执行下面命令。
vi jaxp/jaxp.properties

 

drops.master.copy.base=${drops.dir}

jaxp_src.bundle.name=jaxp145_01.zip
jaxp_src.bundle.md5.checksum=32394c780c8fb5e29775f623525993c0
jaxp_src.master.bundle.dir=${drops.master.copy.base}
#jaxp_src.master.bundle.url.base=http://download.java.net/jaxp/1.4.5
jaxp_src.master.bundle.url.base=http://heanet.dl.sourceforge.net/project/jdk7src/input-archives

jaxp_tests.bundle.name=jaxp-1_4_5-unittests.zip
jaxp_tests.bundle.md5.checksum=fda9b9ad17c459880c077df6ecc7df80
jaxp_tests.master.bundle.dir=${drops.master.copy.base}
#jaxp_tests.master.bundle.url.base=http://download.java.net/jaxp/1.4.5
jaxp_tests.master.bundle.url.base=http://heanet.dl.sourceforge.net/project/jdk7src/input-archives

 

-jaxws_src-url-bundle:
[echo] Downloading from http://download.java.net/glassfish/components/jax-ws/openjdk/jdk7/jdk7-jaxws2_2_4-b04-2011_06_01.zip
[mkdir] Created dir: /home/user/source/openjdk/build/linux-amd64/jaxws/drop/bundles
[get] Getting: http://download.java.net/glassfish/components/jax-ws/openjdk/jdk7/jdk7-jaxws2_2_4-b04-2011_06_01.zip
[get] To: /home/user/source/openjdk/build/linux-amd64/jaxws/drop/bundles/jdk7-jaxws2_2_4-b04-2011_06_01.zip.temp
[get] http://download.java.net/glassfish/components/jax-ws/openjdk/jdk7/jdk7-jaxws2_2_4-b04-2011_06_01.zip moved to http://dlc.sun.com.edgesuite.net/glassfish/components/jax-ws/openjdk/jdk7/jdk7-jaxws2_2_4-b04-2011_06_01.zip

drops.master.copy.base=${drops.dir}

jaxws_src.bundle.name=jdk7-jaxws2_2_4-b04-2011_06_01.zip
jaxws_src.bundle.md5.checksum=f64bedd3c512e6b1ca265fda2feb0905
jaxws_src.master.bundle.dir=${drops.master.copy.base}
#jaxws_src.master.bundle.url.base=http://download.java.net/glassfish/components/jax-ws/openjdk/jdk7
jaxws_src.master.bundle.url.base=http://heanet.dl.sourceforge.net/project/jdk7src/input-archives

jaf_src.bundle.name=jdk7-jaf-2010_08_19.zip
jaf_src.bundle.md5.checksum=18d15dfd71117daadb332af003d08212
jaf_src.master.bundle.dir=${drops.master.copy.base}
#jaf_src.master.bundle.url.base=https://java.net/downloads/jax-ws/JDK7
jaf_src.master.bundle.url.base=http://heanet.dl.sourceforge.net/project/jdk7src/input-archives

如果不行请描述下你的情况。

One thought on “openjdk 编译时出现jaxp145_01.zip moved to 错误

  1. Pingback: Linux centos下编译OpenJDK7-详细指南 | Kimnote

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>