How can I delete a packages that shared a variable for other packages?

Hello everyone,

I am working on Java Card (jcop 31)and I created two packages that uses shareable Interface Object between themself,I would like to know how is the delete of each of packages.I give an example for clearing my question.

I have two packages (Package1,Package2),Package1 have an applet that it share a variable for applet 2 in the package2 ,My question is about deleteing of package1, I think I can delete package1 just after the deleteing of Packge2 ,I mean ,at the first I have to delete Package2 and then package1,is it right?

if I am right I would like to know the reason of it (SIO is defined static or dynamic? )

Is there any way for deleting the Package1 without delete of package2.

I'd appreciated for any help.

yours sincerely,

Orchid.

[807 byte] By [NewOrchida] at [2007-11-26 18:18:20]
# 1

JCRE 2.2.1:Applet installation and deletion on smart cards using Java Card technology is a complex topic. ..

11.3.4.1 Applet Instance DeletionThe Java Card RE shall guarantee that applet instance deletion will not be attempted and thereby deemed unsuccessful if:

* any object owned by the applet instance is referenced from an object owned by another applet instance on the card, or ...

So you must delete package 2 prior to deleting package 1.

lexdabeara at 2007-7-9 5:52:00 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
Dear lxdabear,Thanks a lot for your complete responce.yours sincerely,Orchid
NewOrchida at 2007-7-9 5:52:00 > top of Java-index,Java Mobility Forums,Consumer and Commerce...