JCOP小程序上传错误 [英] jcop applet upload error
问题描述
我是新来的Java卡的发展。我使用 JCOP
工具开发包。当我在Eclipse中运行的简单小程序它给这个错误。在运行配置我选择了Java卡模拟模式。在成功安装在模拟模式,我想在Java卡安装应用程序。
I'm new to Java card development. I use jcop
tools as development kit. When I run simple applet in Eclipse it gives this error. In the run configurations I choose the Java card simulation mode. After successfully installed in simulation mode i want to install app in java card.
cm> upload -b 250 "C:\Projects\Javacard\MyTestApp\bin\hms\javacatd\Myapp\javacard\Myapp.cap"
cm> install -i 6d796170702e617070 -q C9#() 6d797061636b616765 6d796170702e617070
jcshell: Error code: 6985 (Conditions of use not satisfied)
jcshell: Wrong response APDU: 6985
Unexpected error; aborting execution
我的小应用程序ID是 myapp.app </ code>和包
mypackage的
请帮我找到解决办法。
推荐答案
通常什么工作对我来说就是不要试图通过手动jcshell要做到这一点,而是通过创建一个运行配置上传小程序:
What usually works for me is to not try to do this through jcshell manually, but instead upload the applet by creating a run configuration:
- 右键点击您的Java小程序卡项目
- 选择运行方式 - >运行配置...
- 滚动到Java Card应用程序,右击 - >新建
- 在目标选项卡中选择您的读卡器
- 设置包,小程序,在打包上传标签实例AID
有关的其他选项卡的默认值是确定为我(向身份验证卡管理,删除previous实例和包,等等)。
The defaults for the other tabs are ok for me (authenticating to card manager, deleting of previous instance and package, etc.).
保存配置,并运行它。
这篇关于JCOP小程序上传错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!