First, the Java card I want to develop is version 2.2.2 and JDK is 1.5.0.
Resources can be found online. Install JDK.
Jcdk2.2.2 download path:
Https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start? Productref = java_card_kit-2.2.2-oth-JPR @ CDS-CDS_Developer
Jdk1.5.0:
Https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start? Productref = java_ee_sdk-5_01-oth-JPR @ CDS-CDS_Developer
The environment variables are set as follows:
@ Echo off
Set jc_home = D:/javacard/java_card_kit-2_2_2
Set java_home = C:/jdk1.5.0
Set Path =.; % jc_home %/bin; % java_home %/bin; % PATH %
Set classpath = .; % java_home %/LIB; % java_home %/lib/tools. jar; % jc_home %/LIB; % jc_home %/lib/API. jar; % jc_home %/lib/installer. jar
@ Echo on
I will not elaborate on it. Just modify the installation location accordingly.
Notes:
The JDK path should not contain spaces. By default, it is installed in the "Program Files" Directory, which has spaces. Many operation commands will not be used in the future, which is actually caused by spaces, after running this configuration file, tools such as javac converter scriptgen apdutool capdump can be used normally.