Madhusudhan_V a écrit :
The Procedure Followed
1) Created three java files as below
http://www.nabble.com/file/p21621779/Code_Files.txt Code_Files.txt
register(); is deprecated since GP 2.0, you shall use
register(byte[], short, byte).
your package names are meaningless and you do not need
2 packages (so 2 cap files to be loaded) in your case;
simply define:
package com.madhusudhan.mileServer;
public interface MilesServer {
public void grantMiles (short amount);
}
public class Server extends jvc.fmk.Applet implements MilesServer {
// ...
}
the generated export file will contain the definition for the
MilesServer interface only, meaning all what a client requires.
5) Failed to load applets into the card ("load_applet() returns 0x80206985
(6985: Command not allowed - Conditions of use not satisfied.)
did you load the
com.sun.javacard.samples.ShareableInterfaceTest.ShareableInterFace
package first ?
Also i was not able to load any packages other than applets into the card,
is there a different process to be followed to upload packages.
you should be able to load packages with interface only, packages
with utility classes (no Applet-derived class) and packages with
declared Applet.
if you can't either you loading process is invalid or the card
loader is buggy.
Sylvain.
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle