首页 > 解决方案 > Can't generate Javacard applet

问题描述

I am trying To create a Javacard applet from my source code.

So when i type the following command:

converter -debug -verbose 
-exportpath C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2\api_export_files 
-classdir C:\smartcard-with-fingerprint-auth-master\smartcard-with-fingerprint-auth-master\Osiris\bin 
-applet 0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x08:0x09:0x00 Osiris osiris 0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x08:0x09:0x00:0x00 1.0

I receive:

Exception in thread "main" java.lang.NoClassDefFoundError: 
 com/sun/javacard/converter/Converter

Could any one help me to find out from where comes the problem?

标签: javaappletconvertersjavacard

解决方案


较旧的 Java Card Development Kits 需要JC_HOME设置环境变量。它应该指向套件安装目录。

在您的特定情况下,它需要设置为:

C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2

较新的 Java Card SDK 在运行时确定此路径。

祝你的项目好运!


推荐阅读