JCIDE related questions and answers.
Moderators: product, kuafu
-
tay00000
- Posts: 161
- Joined: Tue Sep 27, 2016 10:58 am
- Points :2324
-
Contact:
Post
by tay00000 » Sat Jan 09, 2021 9:55 pm
I am getting a Verification failed during applet build and conversion with
JCIDE version 6.1.0.8 and ft222 and ft_3_0_5_for_classic converters are both being used but failed to execute conversion and verification of CAP files proper.
Code: Select all
"C:/JavaCardKit/SDK/Tools/JDK/bin/java.exe" "-Djc.home=C:/JavaCardKit/SDK/Tools/ChipPack/JAVACOS/lib/java_card_kit/3_0_4" -classpath "C:/JAVACA~1/SDK/Tools/JCIDE/builder/CONVER~1/ft222/ft222.jar";; com.sun.javacard.converter.Converter -out EXP JCA CAP -i -classdir "C:/workspace/CloudSPU/CloudSPU/bin" -exportpath "C:/JavaCardKit/SDK/Tools/ChipPack/JAVACOS/lib/java_card_kit/3_0_4/export_files/api_classic_export_files";"C:/workspace/CloudSPU/CloudSPU/bin"; -applet 0x54:0x54:0x43:0x53:0x50:0x00 CloudSPU.CloudSPU CloudSPU 0x54:0x54:0x43:0x53:0x50 1.0
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.
warning: This package requires int support.
Verifier Error: In method Descriptor[1,002]/Method[3,033]:
At PC 23:
IINC(2): int expected
Verification failed
conversion completed with 1 errors and 1 warnings.
-
tay00000
- Posts: 161
- Joined: Tue Sep 27, 2016 10:58 am
- Points :2324
-
Contact:
Post
by tay00000 » Sat Jan 09, 2021 10:43 pm
Found the answer.
JavaCard does not support following syntax:
Code: Select all
byte[] SYMBOLS = { ... };
for (byte b : SYMBOLS) { // <--- Not supported
You will still have to use the for loop:
Code: Select all
for(short i = 0; i < (short) SYMBOLS.length; i++) :
-
kuafu
- Posts: 317
- Joined: Thu Jun 25, 2015 2:09 am
- Points :4559
-
Contact:
Post
by kuafu » Sun Jan 10, 2021 7:33 am
You can turn off the cap verify.
You do not have the required permissions to view the files attached to this post. Please
login first.
well
Users browsing this forum: Baidu [Spider] and 4 guests
JavaCard OS : Disclaimer
Board Disclaimer
The views and comments posted in these fora are personal and do not necessarily represent the those of the Management of JavaCard OS.
The Management of JavaCard OS does not, under any circumstances whatsoever, accept any responsibility for any advice, or recommentations, made by, or implied by, any member or guest vistor of JavaCard OS that results in any loss whatsoever in any manner to a member of JavaCard OS, or to any other person.
Furthermore, the Management of JavaCard OS is not, and cannot be, responsible for the content of any other Internet site(s) that have been linked to from JavaCard OS.