0
votes

I want to install my applet on card. I generated cap file in eclipse with java card tool menu and generate script option. I used gpshell.exe for install my applet. my card supports java card platform 2.2.1 but eclipse generates cap file with java card platform 2.2.2 thus I did all steps in link enter link description here for recompile my applet with 2.2.1 enter image description here but I'm not sure I did successful.Is another solotion to recompile my applet with jdk 2.2.1 exactly with eclipse?

I run gpshell scripts for install my applet: step Install for load is executed successful but load -file test.cap I get error 6985.

I will send my resultenter image description here

1
these are not same. but I add a comment and I want to delete this post. but I could not - Ftm
These questions are pretty much exact duplicates. And the answer to that other question even suggests what you seem to have already found out: "The most common one (assuming that the card is a Java Card) is that the applet is compiled for a different Java Card API than the card supports." - Michael Roland
No these are not same. becuase I checked .my card supports java card platform 2.2.1 but eclipse generates cap file with java card platform 2.2.2 thus I did all steps in question link . I can send you my result capture in gpshell and gp.exe. can you help me? - Ftm
So to answer your question: You need to compile your applet with the JCDK matching the Java Card version of your CAP file. - Michael Roland

1 Answers

-1
votes

I can not use eclipse to generat cap file with version 2.2.1 but I can do it with JCISDE (java Cos)