LinuxSir.cn,穿越时空的Linuxsir!

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

帮我看看gnu-crypto编译错误

[复制链接]
发表于 2005-4-30 19:01:23 | 显示全部楼层 |阅读模式
  1. CLASSPATH=.:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/jce/javax-crypto.jar:/var/tmp/portage/gnu-crypto-2.0.1
  2. /work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac  gnu/crypto/cipher/DES.java
  3. CLASSPATH=.:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/jce/javax-crypto.jar:/var/tmp/portage/gnu-crypto-2.0.1
  4. /work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac  gnu/crypto/cipher/Khazad.java
  5. CLASSPATH=.:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/jce/javax-crypto.jar:/var/tmp/portage/gnu-crypto-2.0.1
  6. /work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac  gnu/crypto/cipher/NullCipher.jav
  7. a
  8. CLASSPATH=.:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/jce/javax-crypto.jar:/var/tmp/portage/gnu-crypto-2.0.1
  9. /work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac  gnu/crypto/exp/ust/UST.java
  10. CLASSPATH=.:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/jce/javax-crypto.jar:/var/tmp/portage/gnu-crypto-2.0.1
  11. /work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac  gnu/crypto/hash/BaseHash.java
  12. ./gnu/crypto/mac/BaseMac.java:46: cannot access gnu.crypto.hash.IMessageDigest
  13. bad class file: ./gnu/crypto/hash/IMessageDigest.class
  14. class file contains wrong class: java.io.Serializable
  15. Please remove or make sure it appears in the correct subdirectory of the classpath.
  16. CLASSPATH=.:/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/jce/javax-crypto.jar:/var/tmp/portage/gnu-crypto-2.0.1
  17. /work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac  gnu/crypto/hash/HashFactory.java
  18. import gnu.crypto.hash.IMessageDigest;
  19.                        ^
  20. 1 error
  21. make[1]: *** [gnu/crypto/exp/ust/UST.class] Error 1
  22. make[1]: *** Waiting for unfinished jobs....
  23. make[1]: Leaving directory `/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/source'
  24. make: *** [all-recursive] Error 1
复制代码


./gnu/crypto/mac/BaseMac.java:46: cannot access gnu.crypto.hash.IMessageDigest
bad class file: ./gnu/crypto/hash/IMessageDigest.class
class file contains wrong class: java.io.Serializable
好象是说IMessageDigest.class有问题?

可是我打开IMessageDigest.java并没有发现java.io.Serializable,如下
  1. package gnu.crypto.hash;
  2. /**
  3. * <p>The basic visible methods of any hash algorithm.</p>
  4. *
  5. * <p>A hash (or message digest) algorithm produces its output by iterating a
  6. * basic compression function on blocks of data.</p>
  7. *
  8. * @version $Revision: 1.9 $
  9. */
  10. public interface IMessageDigest extends Cloneable {

  11.    // Constants
  12.    // -------------------------------------------------------------------------

  13.    // Methods
  14.    // -------------------------------------------------------------------------

  15.    /**
  16.     * <p>Returns the canonical name of this algorithm.</p>
  17.     *
  18.     * @return the canonical name of this instance.
  19.     */
  20.    String name();

  21.    /**
  22.     * <p>Returns the output length in bytes of this message digest algorithm.</p>
  23.     *
  24.     * @return the output length in bytes of this message digest algorithm.
  25.     */
  26.    int hashSize();

  27.    /**
  28.     * <p>Returns the algorithm's (inner) block size in bytes.</p>
  29.     *
  30.     * @return the algorithm's inner block size in bytes.
  31.     */
  32.    int blockSize();

  33.    /**
  34.     * <p>Continues a message digest operation using the input byte.</p>
  35.     *
  36.     * @param b the input byte to digest.
  37.     */
  38.    void update(byte b);

  39.    /**
  40.     * <p>Continues a message digest operation, by filling the buffer, processing
  41.     * data in the algorithm's HASH_SIZE-bit block(s), updating the context and
  42.     * count, and buffering the remaining bytes in buffer for the next
  43.     * operation.</p>
  44.     *
  45.     * @param in the input block.
  46.     * @param offset start of meaningful bytes in input block.
  47.     * @param length number of bytes, in input block, to consider.
  48.     */
  49.    void update(byte[] in, int offset, int length);

  50.    /**
  51.     * <p>Completes the message digest by performing final operations such as
  52.     * padding and resetting the instance.</p>
  53.     *
  54.     * @return the array of bytes representing the hash value.
  55.     */
  56.    byte[] digest();

  57.    /**
  58.     * <p>Resets the current context of this instance clearing any eventually cached
  59.     * intermediary values.</p>
  60.     */
  61.    void reset();

  62.    /**
  63.     * <p>A basic test. Ensures that the digest of a pre-determined message is equal
  64.     * to a known pre-computed value.</p>
  65.     *
  66.     * @return <tt>true</tt> if the implementation passes a basic self-test.
  67.     * Returns <tt>false</tt> otherwise.
  68.     */
  69.    boolean selfTest();

  70.    /**
  71.     * <p>Returns a clone copy of this instance.</p>
  72.     *
  73.     * @return a clone copy of this instance.
  74.     */
  75.    Object clone();
  76. }
复制代码


搞不明白是什么意思
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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