[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem compiling docs for Crypto
From: |
Andrew John Hughes |
Subject: |
Re: Problem compiling docs for Crypto |
Date: |
Wed, 24 Mar 2010 17:20:23 +0000 |
On 22 March 2010 17:39, Daniel B. Davis <address@hidden> wrote:
> Hello --
>
> I am sending this to both the Cnu Crypto mailing list and the Gnu Classpath
> list,
> since I am not sure which is active.
>
GNU Crypto was merged into GNU Classpath in 2004:
2004-08-14 Casey Marshall <address@hidden>
The Big Crypto Merge of 2004.
>From release 0.90 (March 6th, 2006):
* GNU Crypto and Jessie have been merged into GNU Classpath; this
provides Classpath with a wide array of cryptographic algorithms
(ciphers, message digests, etc.) and implementations of SSL version
3 and TLS version 1. These roughly complement the public
`java.security.' `javax.crypto,' and `javax.net.ssl' packages, and
are service providers implementing the underlying algorithms.
So any issues should be fixed in GNU Classpath.
> I tried to compile the material under Gnu Crypto in order to use your
> Blowfish
> (or Twofish) algorithm, and got the errors shown below. In working on them,
> I
> finally noticed that it had been 'merged' into Gnu Classpath. I downloaded
> Classpath, but could not find the missing Crypto files there.
>
Look under gnu/javax/crypto.
$ ls gnu/javax/crypto/cipher/
Anubis.java Cast5.java DES.java Khazad.java
Serpent.java Twofish.java
BaseCipher.java CipherFactory.java IBlockCipher.java
NullCipher.java Square.java WeakKeyException.java
Blowfish.java CVS/ IBlockCipherSpi.java
Rijndael.java TripleDES.java
> Please help.
>
> Daniel B. Davis
>
> Errors:
> Microsoft Windows [Version 6.0.6001]
> Copyright (c) 2006 Microsoft Corporation. All rights reserved.
>
> C:\temp\gnu-crypto-2.0.1>ant docs
> Buildfile: build.xml
>
> -init:
> [mkdir] Created dir: C:\temp\gnu-crypto-2.0.1\classes
> [mkdir] Created dir: C:\temp\gnu-crypto-2.0.1\lib
>
> -check-args:
>
> -build-jce-jar:
> [echo] About to compile Java Cryptography Extension (JCE) sources...
> [javac] Compiling 83 source files to C:\temp\gnu-crypto-2.0.1\classes
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [echo] About to make a Java Cryptography Extension (JCE) jar...
> [jar] Building jar: C:\temp\gnu-crypto-2.0.1\lib\javax-crypto.jar
> [echo] About to compile javax.security sources...
> [javac] Compiling 20 source files to C:\temp\gnu-crypto-2.0.1\classes
> [javac] Note:
> C:\temp\gnu-crypto-2.0.1\security\javax\security\sasl\Sasl.jav
> a uses unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [echo] About to make javax.security jar
> [jar] Building jar: C:\temp\gnu-crypto-2.0.1\lib\javax-security.jar
>
> -init-jce-jar:
>
> init:
>
> -compile-with-jce:
> [echo] About to compile .java sources including JCE specific ones...
> [javac] Compiling 306 source files to C:\temp\gnu-crypto-2.0.1\classes
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\ClientMechanism.java
> :143: getNegotiatedProperty(java.lang.String) in
> gnu.crypto.sasl.ClientMechanism
> cannot implement getNegotiatedProperty(java.lang.String) in
> javax.security.sasl
> .SaslClient; overridden method does not throw
> javax.security.sasl.SaslException
> [javac] public Object getNegotiatedProperty(final String propName)
> throws
> SaslException {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\ServerMechanism.java
> :150: getNegotiatedProperty(java.lang.String) in
> gnu.crypto.sasl.ServerMechanism
> cannot implement getNegotiatedProperty(java.lang.String) in
> javax.security.sasl
> .SaslServer; overridden method does not throw
> javax.security.sasl.SaslException
> [javac] public Object getNegotiatedProperty(final String propName)
> throws
> SaslException {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\anonymous\AnonymousC
> lient.java:61: getNegotiatedProperty(java.lang.String) in
> gnu.crypto.sasl.Client
> Mechanism cannot implement getNegotiatedProperty(java.lang.String) in
> javax.secu
> rity.sasl.SaslClient; overridden method does not throw
> javax.security.sasl.SaslE
> xception
> [javac] public class AnonymousClient extends ClientMechanism implements
> Sasl
> Client {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\anonymous\AnonymousS
> erver.java:60: getNegotiatedProperty(java.lang.String) in
> gnu.crypto.sasl.Server
> Mechanism cannot implement getNegotiatedProperty(java.lang.String) in
> javax.secu
> rity.sasl.SaslServer; overridden method does not throw
> javax.security.sasl.SaslE
> xception
> [javac] public class AnonymousServer extends ServerMechanism implements
> Sasl
> Server {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\crammd5\CramMD5Clien
> t.java:66: getNegotiatedProperty(java.lang.String) in
> gnu.crypto.sasl.ClientMech
> anism cannot implement getNegotiatedProperty(java.lang.String) in
> javax.security
> .sasl.SaslClient; overridden method does not throw
> javax.security.sasl.SaslExcep
> tion
> [javac] public class CramMD5Client extends ClientMechanism implements
> SaslCl
> ient {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\crammd5\CramMD5Serve
> r.java:67: getNegotiatedProperty(java.lang.String) in
> gnu.crypto.sasl.ServerMech
> anism cannot implement getNegotiatedProperty(java.lang.String) in
> javax.security
> .sasl.SaslServer; overridden method does not throw
> javax.security.sasl.SaslExcep
> tion
> [javac] public class CramMD5Server extends ServerMechanism implements
> SaslSe
> rver {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\plain\PlainClient.ja
> va:60: getNegotiatedProperty(java.lang.String) in
> gnu.crypto.sasl.ClientMechanis
> m cannot implement getNegotiatedProperty(java.lang.String) in
> javax.security.sas
> l.SaslClient; overridden method does not throw
> javax.security.sasl.SaslException
>
> [javac] public class PlainClient extends ClientMechanism implements
> SaslClie
> nt {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\plain\PlainServer.ja
> va:66: getNegotiatedProperty(java.lang.String) in
> gnu.crypto.sasl.ServerMechanis
> m cannot implement getNegotiatedProperty(java.lang.String) in
> javax.security.sas
> l.SaslServer; overridden method does not throw
> javax.security.sasl.SaslException
>
> [javac] public class PlainServer extends ServerMechanism implements
> SaslServ
> er {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\srp\SRPClient.java:8
> 8: getNegotiatedProperty(java.lang.String) in
> gnu.crypto.sasl.ClientMechanism ca
> nnot implement getNegotiatedProperty(java.lang.String) in
> javax.security.sasl.Sa
> slClient; overridden method does not throw javax.security.sasl.SaslException
> [javac] public class SRPClient extends ClientMechanism implements
> SaslClient
> {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\srp\SRPServer.java:8
> 2: getNegotiatedProperty(java.lang.String) in
> gnu.crypto.sasl.ServerMechanism ca
> nnot implement getNegotiatedProperty(java.lang.String) in
> javax.security.sasl.Sa
> slServer; overridden method does not throw javax.security.sasl.SaslException
> [javac] public class SRPServer extends ServerMechanism implements
> SaslServer
> {
> [javac] ^
> [javac] Note:
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\jce\sig\SignatureAd
> apter.java uses or overrides a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 10 errors
>
> BUILD FAILED
> C:\temp\gnu-crypto-2.0.1\build.xml:279: Compile failed; see the compiler
> error o
> utput for details.
>
> Total time: 14 seconds
> C:\temp\gnu-crypto-2.0.1>ant docs
> Buildfile: build.xml
>
> -init:
>
> -check-args:
>
> -build-jce-jar:
> [echo] About to compile Java Cryptography Extension (JCE) sources...
> [echo] About to make a Java Cryptography Extension (JCE) jar...
> [echo] About to compile javax.security sources...
> [echo] About to make javax.security jar
>
> -init-jce-jar:
>
> init:
>
> -compile-with-jce:
> [echo] About to compile .java sources including JCE specific ones...
> [javac] Compiling 83 source files to C:\temp\gnu-crypto-2.0.1\classes
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\ClientMechanism.java:143:
> getNegotiatedProperty(java.lang.String) in gnu
> .crypto.sasl.ClientMechanism cannot implement
> getNegotiatedProperty(java.lang.String) in javax.security.sasl.SaslClient;
> overridden
> method does not throw javax.security.sasl.SaslException
> [javac] public Object getNegotiatedProperty(final String propName)
> throws SaslException {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\ServerMechanism.java:150:
> getNegotiatedProperty(java.lang.String) in gnu
> .crypto.sasl.ServerMechanism cannot implement
> getNegotiatedProperty(java.lang.String) in javax.security.sasl.SaslServer;
> overridden
> method does not throw javax.security.sasl.SaslException
> [javac] public Object getNegotiatedProperty(final String propName)
> throws SaslException {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\anonymous\AnonymousClient.java:61:
> getNegotiatedProperty(java.lang.Strin
> g) in gnu.crypto.sasl.ClientMechanism cannot implement
> getNegotiatedProperty(java.lang.String) in javax.security.sasl.SaslClient;
> ov
> erridden method does not throw javax.security.sasl.SaslException
> [javac] public class AnonymousClient extends ClientMechanism implements
> SaslClient {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\anonymous\AnonymousServer.java:60:
> getNegotiatedProperty(java.lang.Strin
> g) in gnu.crypto.sasl.ServerMechanism cannot implement
> getNegotiatedProperty(java.lang.String) in javax.security.sasl.SaslServer;
> ov
> erridden method does not throw javax.security.sasl.SaslException
> [javac] public class AnonymousServer extends ServerMechanism implements
> SaslServer {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\crammd5\CramMD5Client.java:66:
> getNegotiatedProperty(java.lang.String) i
> n gnu.crypto.sasl.ClientMechanism cannot implement
> getNegotiatedProperty(java.lang.String) in javax.security.sasl.SaslClient;
> overri
> dden method does not throw javax.security.sasl.SaslException
> [javac] public class CramMD5Client extends ClientMechanism implements
> SaslClient {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\crammd5\CramMD5Server.java:67:
> getNegotiatedProperty(java.lang.String) i
> n gnu.crypto.sasl.ServerMechanism cannot implement
> getNegotiatedProperty(java.lang.String) in javax.security.sasl.SaslServer;
> overri
> dden method does not throw javax.security.sasl.SaslException
> [javac] public class CramMD5Server extends ServerMechanism implements
> SaslServer {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\plain\PlainClient.java:60:
> getNegotiatedProperty(java.lang.String) in gn
> u.crypto.sasl.ClientMechanism cannot implement
> getNegotiatedProperty(java.lang.String) in javax.security.sasl.SaslClient;
> overridden
> method does not throw javax.security.sasl.SaslException
> [javac] public class PlainClient extends ClientMechanism implements
> SaslClient {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\plain\PlainServer.java:66:
> getNegotiatedProperty(java.lang.String) in gn
> u.crypto.sasl.ServerMechanism cannot implement
> getNegotiatedProperty(java.lang.String) in javax.security.sasl.SaslServer;
> overridden
> method does not throw javax.security.sasl.SaslException
> [javac] public class PlainServer extends ServerMechanism implements
> SaslServer {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\srp\SRPClient.java:88:
> getNegotiatedProperty(java.lang.String) in gnu.cr
> ypto.sasl.ClientMechanism cannot implement
> getNegotiatedProperty(java.lang.String) in javax.security.sasl.SaslClient;
> overridden met
> hod does not throw javax.security.sasl.SaslException
> [javac] public class SRPClient extends ClientMechanism implements
> SaslClient {
> [javac] ^
> [javac]
> C:\temp\gnu-crypto-2.0.1\source\gnu\crypto\sasl\srp\SRPServer.java:82:
> getNegotiatedProperty(java.lang.String) in gnu.cr
> ypto.sasl.ServerMechanism cannot implement
> getNegotiatedProperty(java.lang.String) in javax.security.sasl.SaslServer;
> overridden met
> hod does not throw javax.security.sasl.SaslException
> [javac] public class SRPServer extends ServerMechanism implements
> SaslServer {
> [javac] ^
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 10 errors
>
> BUILD FAILED
> C:\temp\gnu-crypto-2.0.1\build.xml:279: Compile failed; see the compiler
> error output for details.
>
> Total time: 5 seconds
> C:\temp\gnu-crypto-2.0.1>
>
Your errors don't suggest missing files, but that you are compiling
against newer versions of the interfaces in the Java class library.
What does java -version give for the JDK being used to compile here?
> _______________________________________________
> Classpath mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/classpath
>
>
--
Andrew :-)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8