Page 1 of 1

Remove applet failed? Delete applet failed in java card?

Posted: Tue Jul 10, 2018 10:21 pm
by beginner321
Can anyone encountered this situation?

Delete applet failed with more than 10 times. the function of remove applet is terminated.

This means I can't delete applet in this java card forever?
Why the applet can't be delete?

Re: Remove applet failed? Delete applet failed in java card?

Posted: Fri Jul 13, 2018 5:17 am
by happy123654
I guess the reason is as followed:
There are static field defined in the package and the static field is created in this applet.
You can delete both the package and the applet. or you can remove the creation of the static field in this applet.

Re: Remove applet failed? Delete applet failed in java card?

Posted: Thu Jul 19, 2018 3:01 am
by beginner321
happy123654 wrote:I guess the reason is as followed:
There are static field defined in the package and the static field is created in this applet.
You can delete both the package and the applet. or you can remove the creation of the static field in this applet.


Hi,
thank you very much.
If I want to delete the other Applet on this card, do I need to reinitialize this card? Otherwise I can only delete the package?

Re: Remove applet failed? Delete applet failed in java card?

Posted: Mon Jul 23, 2018 5:14 am
by happy123654
If you want to delete the applet which creates the static field for the package, there are two steps:
1) delete the package and applet.
If there are other applet which belongs to the same package, the applet will deleted too.
If the other applet belongs to other package, the other applet change nothing and you don't reinitialized the card If you want to delete the other Applet.

2) modify the applet code:
You can remove the static field instance with the API: uninstall().
You can load and install the package and the applet and the applet can be deleted only.