Question

I've jsut finished coding my java Card Applet and I need to know how to upload the generated script file into the JavaCard so I can go further and start working on the client side to test my Applet. Thanks in advance.

Was it helpful?

Solution

I have never heard of script file executed inside a JavaCard. Those scripts have to be executed on the host - they communicate with the card and perform commands on the JavaCard. Use the script environment you have implemented the script file for.

OTHER TIPS

I don't know about script files but for testing your Java code you can try this: https://github.com/martinpaljak/vJCRE#usage

It looks like you've got a script for the Java Card simulator (as the AID in the first part shows Sun Microsystems - now Oracle - to be used for the card loader).

Your actual Java Card probably uses the Global Platform standard for loading applets. You need to send the contents of the .cap files after authentication to the GP Card Manager. There is a Global Platform implementation for Java available from Source Forge, and the standard is freely available (after registration).

Before uploading, please check if at least the mayor and minor version numbers of your Card implementation is correct. Be sure to compile against the correct version. Ask your vendor for the Java Card and GP version to use. A set of keys to authenticate to the card manager may be in order as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top