Java Card Development Kit Simulator Release Notes
Table of Contents
Introduction
Java Card technology enables secure elements, such as smart cards and other tamper-resistant security chips to host applications called applets, which employ Java technology.
Java Card technology offers a secure and interoperable execution platform that can store and update multiple applications on a single resource-constrained device, while retaining the highest certification levels and compatibility with standards. Java Card developers can build, test, and deploy applications and services rapidly and securely. This accelerated process reduces development costs, increases product differentiation, and enhances value to customers.
The Java Card Development Kit provides tools for developing and testing applets based on the Java Card Specifications. It is available as three independent downloads:
- The Java Card Development Kit Tools are used to convert and verify Java Card applications.
- The Java Card Development Kit Simulator offers a simulation environment for testing and debugging Java Card applications.
- The Java Card Development Kit Eclipse Plug-in supports developing, testing, and debugging Java Card applications in Eclipse.
Together, these downloads provide a development environment in which applications written for the Java Card platform can be developed and tested.
These release notes describe the Java Card Development Kit Simulator, Version 26.1, which supports the Java Card Platform Specifications, Version 3.2 with Preview Features. They also cover the Java Card Development Kit Eclipse Plug-in, Version 26.1.
What’s New
The complete set of Java Card Development Kit Simulator and Eclipse Plug-in features is described in the Java Card Development Kit Simulator User Guide v26.1 on the Java Card Documentation website.
New Features
JCDK 26.1 adds three Java Card API Preview Features and extends the Simulator development workflow. A Preview Feature is complete but impermanent and may change or be removed in a future Java Card Platform Specification release. Details are available in the Java Card API documentation.
- Simulator – Module-Lattice-Based Keys Preview Feature – Add support for creating, generating, importing, exporting, and clearing ML-KEM and ML-DSA keys, as defined in NIST FIPS 203 and FIPS 204.
- The
javacardx.security.pqcpackage introducesMLKEMPublicKey,MLKEMPrivateKey,MLDSAPublicKey, andMLDSAPrivateKey. PQCKeyFactory.buildKey(...)creates key objects usingNamedParameterSpec.ML_KEM_512,ML_KEM_768, orML_KEM_1024, orNamedParameterSpec.ML_DSA_44,ML_DSA_65, orML_DSA_87.PQCKeyFactory.ATTR_SEEDselects the seed representation of a private key; without this attribute, the private key uses its expanded representation.PQCKeyFactory.generateKeyPair(...)generates a fresh pair or expands a private-key seed. TheEncodableKeyinterface providessetEncoded(...),getEncoded(...), andclearKey()for key-material import, export, and clearing.- The Simulator supports all six ML-KEM and ML-DSA parameter sets. Applets can create key objects with
PQCKeyFactory.buildKey(...)and generate key pairs withPQCKeyFactory.generateKeyPair(...)orKeyPair.genKeyPair(). Private key objects can be created or generated in either seed or expanded representation.
- The
- Simulator – KEM Preview Feature – Add support for key encapsulation and decapsulation using ML-KEM, as defined in NIST FIPS 203, and Diffie-Hellman-based KEM (DHKEM), as defined in RFC 9180.
- The
javacardx.crypto.kem.KEMclass providesALG_ML_KEMandALG_DHKEMfor algorithm selection, andMODE_ENCAPSULATION,MODE_DECAPSULATION, andMODE_EXPANDfor operation selection. KEM.getInstance(...)returns an object implementingKEM.EncapsulatororKEM.Decapsulator; theirencapsulate(...)anddecapsulate(...)methods produce or recover a shared secret.- For ML-KEM, the Simulator supports ML-KEM-512, ML-KEM-768, and ML-KEM-1024 for encapsulation, decapsulation, or both in one instance. During decapsulation,
MODE_EXPANDallows a private key stored as a seed to be expanded before use; expanded private keys are also supported. - For DHKEM, the Simulator supports the
NamedParameterSpec.SECP256R1,SECP384R1,SECP521R1,X25519, andX448parameter sets for encapsulation, decapsulation, or both in one instance. For the three NIST elliptic-curve suites, both legacyALG_EC_FPkeys and XEC keys can be used for encapsulation and decapsulation.
- The
- Simulator – ML-DSA Preview Feature – Add support for generating and verifying post-quantum digital signatures using ML-DSA, as defined in NIST FIPS 204.
- Obtain a
Signatureobject throughSignature.getInstance(...)using thejavacard.security.Signatureconstants below. All variants implement pure ML-DSA and useMessageDigest.ALG_NULLandCipher.PAD_NULL. - The
EXTERNAL_MUvariants use an externally computed 64-byte message representative,mu, instead of the original message. TheEXPAND_SEEDvariants support seed-representation private keys in addition to expanded private keys. - Supported variants:
SIG_CIPHER_ML_DSA– original message; expanded private key.SIG_CIPHER_ML_DSA_EXPAND_SEED– original message; seed or expanded private key.SIG_CIPHER_ML_DSA_EXTERNAL_MU– externally computedmu; expanded private key.SIG_CIPHER_ML_DSA_EXTERNAL_MU_EXPAND_SEED– externally computedmu; seed or expanded private key.
- The Simulator supports all four variants for signing and verification with ML-DSA-44, ML-DSA-65, and ML-DSA-87.
- Obtain a
- Eclipse Plug-in – Preview API selection – For conversion and verification, the plug-in uses the Tools Converter and Verifier with
-enable-preview finalfor Final Preview APIs (BDH and ECSDSA), or-enable-preview allfor all Preview APIs (BDH, ECSDSA, KEM, ML-DSA, and Module-Lattice-Based Keys). - Simulator – JShell client – Add startup scripts that launch JShell as an interactive Simulator client.
- The supplied commands let developers connect to a Simulator instance, load CAP files, install and select applets, and send APDUs.
- Developers can combine and extend these commands with Java code to create reusable scripts for their own deployment and test workflows. The HelloWorld, Channels, and ArrayViews samples show how to run operations and clean up afterward.
- Eclipse Plug-in – JCShell Terminal – The Eclipse Plug-in provides a JCShell Terminal for interacting with the Simulator. It can open when the Simulator starts, and selected scripts can run automatically at the start of a debug session.
- Simulator – GlobalPlatform Executable Load File Upgrade – Add support for the GlobalPlatform Card Specification v2.3 Amendment H, Executable Load File Upgrade v1.1.
- Upgrade both Compact CAP and Extended CAP files using the
org.globalplatform.upgradeAPI and the MANAGE ELF UPGRADE command. - The MANAGE ELF UPGRADE command controls a CAP File upgrade session through the
START,RESUME,RECOVERY,ABORT, andSTATUSoperations defined in Amendment H. - The API lets an applet participate in saving and restoring application state during a CAP File upgrade. Upgrade logging provides information about session progress and failures.
- Upgrade both Compact CAP and Extended CAP files using the
- Windows PC/SC driver – Support up to 10 PC/SC reader instances, each connected to a Simulator instance.
- The updated Driver Controller can install a reader for a specified IP address and port, list readers, and uninstall one or all readers.
- Installing version 26.1 automatically removes driver instances from earlier releases.
- Simulator – Factory reset – Add a proprietary APDU command to reset the Simulator without restarting it, so destructive test suites can return to a clean state between runs.
- The command is disabled by default and requires the
-enable-factory-resetstartup option. - A successful reset clears nonvolatile memory and reinitializes the card, removing installed packages, applet instances, and persisted application data.
- The command is disabled by default and requires the
- Simulator – OpenSSL – Update the bundled 32-bit OpenSSL 3.5 shared library to version 3.5.8.
Bug Fixes
- Simulator – GlobalPlatform – Correct GET DATA handling for User Key Diversification Data (tag
00CF). - Simulator – CAP file deletion – Prevent deletion of a CAP file while a static primitive array owned by it remains reachable from another CAP file.
- Simulator – Transactions – Correct transaction handling for updates larger than 4 KB and restore all affected bytes when overlapping array-copy operations are aborted.
- Simulator – Virtual method resolution – Correct method lookup when a superclass adds a method and an indirect subclass was built against an earlier version.
- Simulator – Applet installation – Allow
JCSystem.beginTransaction()beforeApplet.register()during applet installation.
System Requirements
This product is targeted for use on PCs with the following operating systems and architectures:
- Microsoft Windows 11 for x86 architecture
- Linux for Oracle Linux 9 and Ubuntu 24.04 LTS for x86 architecture
- Linux Ubuntu 24.04 LTS for ARM 32-bit architecture
The following software must be installed for the Java Card Development Kit Simulator to work:
-
Java Development Kit (JDK): This release has been verified and tested with Oracle JDK 25 (64 bit version) and OpenJDK 25 (64 bit version). Download the JDK software from:
https://www.oracle.com/java/technologies/downloads/Install it according to the instructions on the website.
-
PCSC-Lite: PCSC-Lite is optional. On Linux, it is required only when communicating with the Simulator through the PC/SC interface. This release has been verified and tested with PCSC-Lite 2.3.3, which can be installed following the instructions on the website https://pcsclite.apdu.fr/.
-
Eclipse IDE: Eclipse IDE is optional and is required only for using the Eclipse Plug-in. The Java Card Eclipse Plug-in requires Eclipse 2026-06 (4.40) and JDK 25. Download the Windows Eclipse IDE from the following URL and install it according to the instructions on the website:
-
Visual Studio Code IDE: Visual Studio Code is optional and is required only for integrating a Java Card project with this IDE. The Java Card Development Kit Simulator has been validated with version 1.140. Download Visual Studio Code from the following URL and install it according to the instructions on the website:
-
Java Extension for Visual Studio Code: The Oracle Java Extension is optional and is required only for integrating a Java Card project with Visual Studio Code. The Java Card Development Kit Simulator has been validated with version 27.0.0. Install the extension from the Visual Studio Marketplace.
Installation
The Java Card Specifications, Development Kit Simulator, and Development Kit Tools must be downloaded and installed individually.
-
See the Downloading the Specification Documents topic of the Java Card Platform Specification Release Notes, Version 3.2 for more details on how to download the Java Card Specification bundle.
-
See the Installation topic of the Java Card Development Kit User Guide for more details on how to install the Java Card Development Kit Simulator and Java Card Development Kit Tools.
Contents of the Development Kit Simulator
The Java Card Development Kit Simulator bundle contains the Java Card simulation environment. The Eclipse Plug-in is distributed as a separate bundle.
The following table describes the files and directories that are installed in the root installation directory (JC_HOME_SIMULATOR).
| Directory/File | Description |
|---|---|
client |
Contains client components: an application management service API
(AMService.jar file and javadoc documentation),
a communication smartcardio API (socketprovider.jar
file) and a debugger proxy (jc-debug-proxy.jar
file) to manage, communicate, and debug Java Card
applications.
|
drivers |
For Linux, it contains the IFD Handler
(libjcsdkifdh.so) for PCSCLite. For Windows, it
contains the driver and its controller
(jcdkPCSC.cat, jcdkPCSC.sys,
jcdkPCSC.inf, and jcdkPCSCCtrl.exe).
It enables an application to communicate with the Java Card
Development Kit Simulator based on PC/SC.
|
runtime |
Contains the Java Card Development Kit Simulator binary executable, as well as the OpenSSL shared library 3.5 (32-bit). |
samples |
Contains sample applets and the corresponding client applications. |
tools |
Contains a tool to configure the Java Card Development Kit
Simulator (Configurator.jar) with a secure channel
protocol key set and a Global PIN.
|
Known Issues
Windows PC/SC driver
Simulated Reader State Not Updated When Simulator Stops
Problem
When the simulator is stopped, the PC/SC stack fails to update the simulated reader state to SCARD_ABSENT. As a result, applications relying on card removal detection may not respond as expected.
Impact
For applications using winscard.h:
SCardStatus()may still reportSCARD_PRESENTeven though the Simulator is no longer runningSCardGetStatusChange()can remain blocked despite the Simulator having been stoppedSCardConnect()can connect and return successfully even though the Simulator is no longer running
For applications using javax.smartcardio:
CardTerminal.waitForCardAbsent()may remain blocked despite the Simulator having been stoppedCardTerminal.connect()can connect and return successfully even though the Simulator is no longer running
Workaround
After stopping the Simulator, issue a connection attempt to force a state refresh:
- Using
winscard.h: CallSCardConnect()and thenSCardDisconnect()if the connection succeeds. - Using
javax.smartcardio: CallCardTerminal.connect("*")and thenCard.disconnect(true)if the connection succeeds.
This probe will detect that the Simulator is stopped and will unblock logic waiting for SCARD_ABSENT.
Recommendation
Always call SCardDisconnect() when using winscard.h, or Card.disconnect(true) when using javax.smartcardio, before stopping the Simulator. Include timeouts or cancellation where possible to avoid indefinite blocking.
JCDK Controller and PC/SC Driver IP address limitation
The JCDK Controller and PC/SC Driver does not resolve DNS names, including localhost or computer names. The IP address must be explicitly specified in IPv4 format when installing new reader using the JCDKPCSCCtrl.exe.
Documentation
The Java Card Documentation website provides online product documentation for the Java Card Platform.
| Document | Description |
|---|---|
| Java Card Platform Specifications. | The following specification documents are available for the Java Card Platform, Version 3.2 with Preview Features:
|
| Java Card Options List | This document describes the list of options available to implement a Java Card platform, based on the Java Card Specifications. |
| Java Card Development Kit Simulator - User Guide | This document describes how to use the Java Card Development Kit Simulator and Eclipse plugin to develop, test and debug applications for Java Card Platform. It is available in HTML and PDF formats. |
| Java Card Development Kit Tools - User Guide | This document describes how to use the Java Card Development Kit Tools to convert and verify applications for Java Card Platform. It is available in HTML and PDF formats. |
Product Information
The Java Card Technology website provides useful information about the Java Card product.
Visit the Java Card Technology website to access the most up-to-date information on the following:
- Product news and reviews
- Release notes and product documentation
Documentation Accessibility
For information about Oracle’s commitment to accessibility, visit the Oracle Accessibility Program website at https://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc
Access to Oracle Support
Oracle customers that have purchased support have access to electronic support through My Oracle Support. For information, visit My Oracle Support or Oracle Support for hearing-impaired customers.
Documentation Accessibility
For information about Oracle’s commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc.
Access to Oracle Support
Oracle customer access to and use of Oracle support services will be pursuant to the terms and conditions specified in their Oracle order for the applicable services.
Java Card Development Kit Simulator Release Notes, version 26.1
G57039-01