Load stk applet to sim card

I am starting to develop, I am trying to load stk applet into Sim card, this is my question:

I have an STK applet code.

I have a smart card reader (gemplus pc / sc)

I have a SIM card and admin code

I installed eclipse and added JAvaCard and SIM API libraries.

when i try to run the applet i get this error:

    Charger : la classe ImsiManager.class est introuvable.
java.lang.ClassNotFoundException: ImsiManager.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


and an appletviewer window appears with the message "applet not initialized".

please can anyone help? I need to know how to load this applet into my sim card? all suggestions are welcome



source to share

2 answers

You cannot run SIM applets in Eclipse IDE without using a simulator and you need to use a SIM simulator (this could be a plugin for your IDE) or try running the applet on a real SIM.

Also, to download (and install) your applets, you first need to convert that program to a CAP file. The Java Card Developer Kit has a tool that you can use to convert applets to CAP files.

Instead of using the converter directly, you can simply use the Eclipse-JCDE plugin to work with this tool and convert your applets.

After conversion, you need to download this CAP file to your SIM card. You can use some of the open source tools already written to achieve this goal. GlobalPlatformPro is well documented.

Please note, I'm afraid if the Java Card Development Kit can convert applets with proprietary SIM interfaces to CAP files. but for applets containing only Java Card API, you can use it simply.



How to convert code to cap file:

  • USE the JCWDE Eclipse plugin to convert your code to a CAP file. Check out the eclipse marketplace for the plugin and related tutorial. You will need JAVACARD for this event, go to Oracle website to download it or just Google.

How to upload a file with a cover to a card:

  • Visit the Simalliance website, download the Simalliance catloader tool. This is support for downloading and exploring maps. You must have maps to download / install or uninstall applications on the map.

  • Check out Catloader's guide on how to use the tool. IT'S FREE to use.

Enjoy :)



All Articles