Use the IDE to build and run the sample. When you click the Run Main Project button, the IDE starts the Java Card runtime environment, deploys the application to a device, and creates instances of the application on the device which a browser or client can access. The IDE uses the Packager and Off-Card Installer tools to create a package for the device, load the application on the device, and create instances of the application. By using the IDE, you do not have to start the Java Card runtime environment or run the Packager and Off-Card Installer tools as separate activities.
When the extended applet runs, it displays Default Device and build.xml(run) output in the IDE Output window. The output of an extended applet results in the opening of a connection to a localhost and the communication of a hexadecimal string.
Refer to the Development Kit documentation for a description of the Packager and Off-Card Installer tools used by the IDE.
The Java Card 3 development kit contains a basic extended applet sample, HelloWorld, in JC_CONNECTED_HOME\samples\extended_applets. The HelloWorld sample and can also be downloaded from the Kenai Java Card 3 repository. It illustrates basic use of the Java Card API to run an extended applet application and demonstrates the basic structure of an extended applet that developers can use to develop, deploy, create, execute, delete, and unload extended applets. This sample is a minimal example of an extended applet utilizing the simplest source code and meta-files.