LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 855|回复: 1

[Solved]求助啊,[javac] error: error reading /opt/sun-jdk-1.6.0.24/jre/lib/rt.ja

[复制链接]
发表于 2011-4-14 15:29:22 | 显示全部楼层 |阅读模式
>>> Emerging (3 of 3) dev-java/xalan-serializer-2.7.1
* xalan-j_2_7_1-src.tar.gz RMD160 SHA1 SHA256 size ;-) ...              [ ok ]
* Package:    dev-java/xalan-serializer-2.7.1
* Repository: gentoo
* Maintainer: java@gentoo.org
* USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
* FEATURES:   ccache sandbox
* Using: sun-jdk-1.6
>>> Unpacking source...
>>> Unpacking xalan-j_2_7_1-src.tar.gz to /var/tmp/portage/dev-java/xalan-serializer-2.7.1/work
tar: A lone zero block at 40299
removed `lib/BCEL.jar'
removed `lib/regexp.jar'
removed `lib/runtime.jar'
removed `lib/xercesImpl.jar'
removed `lib/xml-apis.jar'
removed `tools/JLex.jar'
removed `tools/ant.jar'
removed `tools/java_cup.jar'
removed `tools/stylebook-1.0-b3_xalan-2.jar'
removed `tools/xalan2jdoc.jar'
removed `tools/xalan2jtaglet.jar'
removed `src/xml-commons-external-1.3.02-src.tar.gz'
>>> Source unpacked in /var/tmp/portage/dev-java/xalan-serializer-2.7.1/work
>>> Compiling source in /var/tmp/portage/dev-java/xalan-serializer-2.7.1/work/xalan-j_2_7_1 ...
Rewriting attributes
Rewriting ./build.xml
* Disabling all optional ANT_TASKS
Buildfile: /var/tmp/portage/dev-java/xalan-serializer-2.7.1/work/xalan-j_2_7_1/build.xml

serializer.prepare:
    [mkdir] Created dir: /var/tmp/portage/dev-java/xalan-serializer-2.7.1/work/xalan-j_2_7_1/build
    [mkdir] Created dir: /var/tmp/portage/dev-java/xalan-serializer-2.7.1/work/xalan-j_2_7_1/build/serializer

serializer.compile:
     [echo] Compiling the Serializer
    [javac] Compiling 84 source files to /var/tmp/portage/dev-java/xalan-serializer-2.7.1/work/xalan-j_2_7_1/build/serializer
    [javac] error: error reading /opt/sun-jdk-1.6.0.24/jre/lib/rt.jar; cannot read zip file entry
    [javac] Fatal Error: Unable to find package java.lang in classpath or bootclasspath

BUILD FAILED
/var/tmp/portage/dev-java/xalan-serializer-2.7.1/work/xalan-j_2_7_1/build.xml:1332: Compile failed; see the compiler error output for details.

Total time: 3 seconds
* ERROR: dev-java/xalan-serializer-2.7.1 failed (compile phase):
*   eant failed
*
* Call stack:
*     ebuild.sh, line   56:  Called src_compile
*   environment, line 4240:  Called java-pkg-2_src_compile
*   environment, line 2279:  Called eant 'serializer.jar' '-f' 'build.xml'
*   environment, line  807:  Called die
* The specific snippet of code:
*       ant ${antflags} "${@}" || die "eant failed"
*
* If you need support, post the output of 'emerge --info =dev-java/xalan-serializer-2.7.1',
* the complete build log and the output of 'emerge -pqv =dev-java/xalan-serializer-2.7.1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.24"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info
* The complete build log is located at '/var/tmp/portage/dev-java/xalan-serializer-2.7.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/xalan-serializer-2.7.1/temp/environment'.
* S: '/var/tmp/portage/dev-java/xalan-serializer-2.7.1/work/xalan-j_2_7_1'

>>> Failed to emerge dev-java/xalan-serializer-2.7.1, Log file:

>>>  '/var/tmp/portage/dev-java/xalan-serializer-2.7.1/temp/build.log'

* Messages for package dev-java/ant-core-1.8.1:

* The way of packaging ant in Gentoo has changed significantly since
* the 1.7.0 version, For more information, please see:
* http://www.gentoo.org/proj/en/java/ant-guide.xml
*
* Since 1.7.1, the ant-tasks meta-ebuild has been removed and its USE
* flags have been moved to dev-java/ant.

* Messages for package dev-java/xalan-serializer-2.7.1:

* ERROR: dev-java/xalan-serializer-2.7.1 failed (compile phase):
*   eant failed
*
* Call stack:
*     ebuild.sh, line   56:  Called src_compile
*   environment, line 4240:  Called java-pkg-2_src_compile
*   environment, line 2279:  Called eant 'serializer.jar' '-f' 'build.xml'
*   environment, line  807:  Called die
* The specific snippet of code:
*       ant ${antflags} "${@}" || die "eant failed"
*
* If you need support, post the output of 'emerge --info =dev-java/xalan-serializer-2.7.1',
* the complete build log and the output of 'emerge -pqv =dev-java/xalan-serializer-2.7.1'.
* The complete build log is located at '/var/tmp/portage/dev-java/xalan-serializer-2.7.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/xalan-serializer-2.7.1/temp/environment'.
* S: '/var/tmp/portage/dev-java/xalan-serializer-2.7.1/work/xalan-j_2_7_1'

* GNU info directory index is up-to-date.



求好心人emerge -1 xalan-serializer看看输出。。。

我genlop显示2月份这个包都编译通过了,现在咋不行了呢。。
 楼主| 发表于 2011-4-15 09:34:32 | 显示全部楼层
居然...
!!! /opt/sun-jdk-1.6.0.24/jre/lib/security/cacerts has incorrect MD5sum
!!! /opt/sun-jdk-1.6.0.24/jre/lib/rt.jar has incorrect MD5sum
!!! /opt/sun-jdk-1.6.0.24/jre/lib/jexec has incorrect MD5sum
!!! /opt/sun-jdk-1.6.0.24/lib/jexec has incorrect MD5sum
重装sun-jdk解决  无语呀。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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