Simulation Tools in Java Card
Prior to starting the simulations, right click on the package MyPackage, choose Tools and then Java Card Generate Script. These consequences involuntarily engender APDU necessary to upload, instantiation (installation) and the assortment of the applet on a JavaCard. Monpackage.javacard then contains three scripts:
- Cape download.script: upload applet
- create-MonApplet.script: installation of the applet
- selectmen MonApplet.script: assortment of applet
APDUTOOL: Sending / Receiving APDU
The tool allows JCDK APDUTOOL of exchange APDUs with a real or a JavaCard simulator.
JCWDE: Simulator without conservation status
The simulator does not require JCWDE phase upload code. We just need to install and select our applet to be able to operate it. In the menu JCWDE Eclipse, select Start.
Click the OK button to launch the simulator JCWDE with our applet. The simulator is launched and then waits for a connection. We can then run the tool APDUTOOL. To do this, open a command prompt, run the script setvars.bat (see IV b), then enter apdutool and validate.
Install our applet by copying the contents in the APDU script create-MonApplet.script (except the last statement powerdown):
We see that the card responds "positively" with a status word 0x9000.
Bookmarks