设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 发行版讨论区 —— LinuxSir.cn
›
Gentoo Linux
›
帮我看看gnu-crypto编译错误
返回列表
查看:
798
|
回复:
0
帮我看看gnu-crypto编译错误
[复制链接]
graydream
graydream
当前离线
积分
1293
IP卡
狗仔卡
发表于 2005-4-30 19:01:23
|
显示全部楼层
|
阅读模式
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
/work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac gnu/crypto/cipher/DES.java
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
/work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac gnu/crypto/cipher/Khazad.java
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
/work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac gnu/crypto/cipher/NullCipher.jav
a
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
/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
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
/work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac gnu/crypto/hash/BaseHash.java
./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
Please remove or make sure it appears in the correct subdirectory of the classpath.
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
/work/gnu-crypto-2.0.1/security/javax-security.jar /opt/blackdown-jdk-1.4.2.01/bin/javac gnu/crypto/hash/HashFactory.java
import gnu.crypto.hash.IMessageDigest;
^
1 error
make[1]: *** [gnu/crypto/exp/ust/UST.class] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/gnu-crypto-2.0.1/work/gnu-crypto-2.0.1/source'
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,如下
package gnu.crypto.hash;
/**
* <p>The basic visible methods of any hash algorithm.</p>
*
* <p>A hash (or message digest) algorithm produces its output by iterating a
* basic compression function on blocks of data.</p>
*
* @version $Revision: 1.9 $
*/
public interface IMessageDigest extends Cloneable {
// Constants
// -------------------------------------------------------------------------
// Methods
// -------------------------------------------------------------------------
/**
* <p>Returns the canonical name of this algorithm.</p>
*
* @return the canonical name of this instance.
*/
String name();
/**
* <p>Returns the output length in bytes of this message digest algorithm.</p>
*
* @return the output length in bytes of this message digest algorithm.
*/
int hashSize();
/**
* <p>Returns the algorithm's (inner) block size in bytes.</p>
*
* @return the algorithm's inner block size in bytes.
*/
int blockSize();
/**
* <p>Continues a message digest operation using the input byte.</p>
*
* @param b the input byte to digest.
*/
void update(byte b);
/**
* <p>Continues a message digest operation, by filling the buffer, processing
* data in the algorithm's HASH_SIZE-bit block(s), updating the context and
* count, and buffering the remaining bytes in buffer for the next
* operation.</p>
*
* @param in the input block.
* @param offset start of meaningful bytes in input block.
* @param length number of bytes, in input block, to consider.
*/
void update(byte[] in, int offset, int length);
/**
* <p>Completes the message digest by performing final operations such as
* padding and resetting the instance.</p>
*
* @return the array of bytes representing the hash value.
*/
byte[] digest();
/**
* <p>Resets the current context of this instance clearing any eventually cached
* intermediary values.</p>
*/
void reset();
/**
* <p>A basic test. Ensures that the digest of a pre-determined message is equal
* to a known pre-computed value.</p>
*
* @return <tt>true</tt> if the implementation passes a basic self-test.
* Returns <tt>false</tt> otherwise.
*/
boolean selfTest();
/**
* <p>Returns a clone copy of this instance.</p>
*
* @return a clone copy of this instance.
*/
Object clone();
}
复制代码
搞不明白是什么意思
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
网络技术\网络安全讨论
Redhat/Fedora/CentOS Linux
Mandriva Linux
Debian Linux
Archlinux讨论区
Linux 基础讨论区(新手速成)
Linux 输入开发与研究
shell进阶应用、shell编程
服务器架设、应用、维护
开源软件专题讨论
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表