Running the classic_applets Samples

The following sections describe the following development kit samples in order of their complexity and provide procedures for running them:

  • HelloWorld Sample - A minimal applet utilizing the simplest source code and meta-files that demonstrates the base structure of a Java Card applet that developers can use to develop, deploy, create, execute, delete, and unload a standalone module.

  • Channels Sample - Demonstrates the use of logical channels which allows selecting multiple applets at the same time.

  • Service Sample - Demonstrates the Java Card service framework of classes and interfaces that enable a Java Card technology-based applet to be designed as an aggregation of service components.

  • Utility Sample - Demonstrates the use of the utility APIs in an applet to simulate stock trading and portfolio management.

  • Wallet Sample - Demonstrates a simplified cash card application.

  • ObjectDeletion Sample - Contains two samples, odDemo1 and odDemo2, that demonstrate applet and package deletion and the object deletion mechanism that removes unreachable objects.

  • PhotoCard Sample - Demonstrates how to store images in the large address space that is available in the 32-bit version of the Java Card simulator.

  • RMIPurse Sample - Demonstrates the use of the Java Card platform Remote Method Invocation (Java Card RMI) API. The basic example used is a program that manages a counter remotely, and can decrement, increment, and return the value of an account. See Programming to the Java Card RMI Client-Side API.

  • StringHandlingApp Sample - Demonstrates the use of two Java Card Classic libraries that use string annotations to define string constants and two Java Card Classic applets that use those annotations to define their own set of string constants and import string constants from the libraries.

  • SecureRMIPurse Sample - Similar to the RMIPurse sample, but demonstrates additional security at the transport level. This sample is only included in bundles with cryptography extensions.

  • SignatureMessageRecovery Sample - Demonstrates message recovery. This sample is only included in bundles with cryptography extensions.

  • ArrayViews Sample - Demonstrates a client application and a server application sharing data using array views.

  • CertHandling Sample - Demonstrates the use of static resources and certificate API to parse and verify a certificate.