Java Card applications can be tested in a simulation, which closely simulates a real card behavior. Like any other process, the Java Card simulation is launched through Eclipse's launching framework.
Note: The launch dialog and layout is different between Eclipse 3.1 and 3.2. The sample shows the Eclipse 3.2 version of the launch configuration setup. Refer to the Eclipse 3.1 documentation for details how to define launch configurations using Eclipse 3.1.
Use the following steps to create a new launch configuration and to start the Java Card simulation
The Java Card simulation launch dialog contains the following tabs:
Use the Package Upload tab to select and configure the packages to be uploaded
and the applets to be installed.
Press the Add package... button and select the package from
the given list.
Press "OK" to return to the package Upload tab.
Select the package in the list and press the Install applet button to open the Install applet dialog.
Choose the applet from the given list and press "OK".
The Edit button is enabled when an applet is selected. It can be used to
define specific install parameters for the applet
and to define applet install properties.
The following picture shows an example of the the Package Upload tab containing the information a sample package and applet:
The JCOP Debug perspective, including the JCOP Shell environment,
will automatically open.
The shell now automatically connects to the newly launched simulation
and initiates the upload and installation process (if set in the launch configuration).
Related information