I am a beginner of javacrad development, I built a environment like this:
JCOP Tools 3.1.1.b already activate
but I found there are some errors for this environment.
1. I can not generate CAP file both use JCOP or JCWDE even using a sample applet.
cm> upload -d "C:\Users\tang\workspace\Tang\bin\Tang_Test\javacard\Tang_Test.cap"
jcshell: Cannot read <C:\Users\tang\workspace\Tang\bin\Tang_Test\javacard\Tang_Test.cap>: java.io.FileNotFoundException: C:\Users\tang\workspace\Tang\bin\Tang_Test\javacard\Tang_Test.cap
cm> install -i 48656c6c6f776f726c64 -q C9#() 5448576f726c64 48656c6c6f776f726c64
=> 80 E6 0C 00 24 07 54 48 57 6F 72 6C 64 0A 48 65 ....$.THWorld.He
6C 6C 6F 77 6F 72 6C 64 0A 48 65 6C 6C 6F 77 6F lloworld.Hellowo
72 6C 64 01 00 02 C9 00 00 00 rld.......
<= 6A 88 j.
Status: Reference data not found
jcshell: Error code: 6a88 (Reference data not found)
jcshell: Wrong response APDU: 6A88
Java Card 2.2.2 Class File Converter, Version 1.3
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
conversion completed with 1 errors and 0 warnings.
error: Lan.LanHW: unsupported class file format of version 50.0.
Does anyone know how to resolve this problem?
Thanks a lot.
For that version of JCOP tools you will be developing against JC 2.2.1 and need to set your Java compiler settings in Eclipse to 1.3 for that project. For JCWDE you will be targeting JC 2.2.2 so you can use 1.5 as the compiler version. The JDK version has nothing to do with this so you do not need a different JDK. Eclipse has its own built in compiler.