java - 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?
解决方案
较旧的 Java Card Development Kits 需要JC_HOME
设置环境变量。它应该指向套件安装目录。
在您的特定情况下,它需要设置为:
C:\java_card_kit-2_2_2-windows\java_card_kit-2_2_2
较新的 Java Card SDK 在运行时确定此路径。
祝你的项目好运!
推荐阅读
- fonts - CrystalReports 中的水平缩小文本
- java - 使用 GeckoDriver 运行 Java Selenium WebDriver 时 Firefox 无法连接
- python - 从 zigzag 配置中获取元素的索引
- c# - 如何在 .net 框架 3.5 上使用 IL 在运行时编辑 C# 方法?
- javascript - Typescript react/redux 指南 - 如何从 js 翻译?
- php - 显示 SELECT COUNT 的值
- macos - 在 macos 上调用私有构造函数时出错
- php - 动态 PHP 导航菜单
- python - 根据不同列的部分字符串匹配在新数据框列中创建标签
- python - 遍历字典以在另一个列表中创建项目列表