This is a known problem and is being fixed.
JCE 1.2 beta1 was compiled with the latest "javac" version which
introduced a version number upgrade (which will be backed out again
before FCS). We are going to release another version of JCE 1.2 beta1
that was compiled with the compiler available in JDK 1.2 beta4
today. This release will be named JCE 1.2 beta2.
Sorry about that.
Thanks,
Jan
> Date: Mon, 28 Sep 1998 10:06:12 -0700
> From: Robert Yowell <yowell@spawar.navy.mil>
> MIME-Version: 1.0
> To: java-security@java.sun.com
> Subject: Using the JCE 1.2
> Content-Transfer-Encoding: 7bit
>
> I encountered the following problem while using the JCE 1.2. When I
> compiled a simple program,
> import java.security.*;
> import java.io.*;
> import java.util.*;
> import java.awt.*;
> import javax.crypto.*;
> import javax.crypto.spec.*;
> import javax.crypto.interfaces.*;
> import com.sun.crypto.provider.SunJCE.*;
>
> public class TestCipher {
> public static void main(String args[]) {
>
> Cipher c = Cipher.getInstance("DES/ECB/PKCS5Padding");
> }
> }
>
> I got the following error.
>
> error: Invalid class file format:
>
/picantehome/cratch/jce/jce12-beta1-dom/lib/jce12-beta1-dom.jar(com/sun/crypto/p
rovider/SunJCE.class),
> wrong version: 46, expected 45
> error: Invalid class file format:
>
/picantehome/cratch/jce/jce12-beta1-dom/lib/jce12-beta1-dom.jar(javax/crypto/Cip
her.class),
> wrong version: 46, expected 45
> TestCipher.java:13: Class javax.crypto.Cipher not found in type
> declaration.
> Cipher c = Cipher.getInstance("DES/ECB/PKCS5Padding");
> ^
> TestCipher.java:13: Class javax.crypto.Cipher not found in type
> declaration.
> Cipher c = Cipher.getInstance("DES/ECB/PKCS5Padding");
> ^
> TestCipher.java:13: Undefined variable or class name: Cipher
> Cipher c = Cipher.getInstance("DES/ECB/PKCS5Padding");
> ^
> 5 errors
>
> Is this problem due to an incorrect version of JDK1.2? I have not seen
> this type of error in the past.
>
> Bob Yowell
>
>