Java Converter
843851Mar 14 2007 — edited Mar 30 2008Dear all,
I'm using Schlumberger SDK 4.5. And to create a *.ijc-file (An alternative for the CAP-file) I have to use a program file generator, delivered with the software. But it's based on the standard Java Converter.
It works for the example class of CryptoTest (deliverd with the software), but when I recompile CryptoTest (and it's the same with a selfwritten java-file), it with 'javac -g -target 1.2 -source 1.2 *.java' and then try to create the *.ijc-files of CryptoTest, I get the 'Error: CAP creation failed' with following errorfragment:
-----------------------------
Creating JCA and JAR.....
java com.sun.javacard.converter.Converter -config .\converter.opt
.....
Assertion (precondition) failed at:
Java Card 2.2 Class File Converter (version 1.3)
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
-----------------------------
If I try to compile with java 1.3.1_20 (javac -g -target 1.3 -source 1.3 *.java), I get:
error: applet.CryptoTest: unsupported class file format of version 47.0.
So apparently it doesn't work with that version of Java, although in the manual (I use SDK 4.5), there's stated that it's tested with Java SDK 1.3
I'm (also) posting here because I've got the feeling that it's an incompatibility with the java versions, although I'm not sure of it.
Can anybody give me suggestions about what's wrong and certainly how I can solve this problem? Your help is certainly appreciated (a lot )!!
thanks in advance,
Kurt