Reputation: 97
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
My applet id is myapp.app
and package is mypackage
Please help me to find solution.
Upvotes: 2
Views: 3189
Reputation: 112
Usually, if you successfully installed applet in java card simulator, but when installed on the card fails, first, you need to determine the simulator and cards used java card version is the same? That is: the card supports java card version must be consistent with the version of development kit.
Second, you need to check whether the card supporting the functions in the applet.
Upvotes: 0
Reputation: 1783
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:
The defaults for the other tabs are ok for me (authenticating to card manager, deleting of previous instance and package, etc.).
Save the configuration, and run it.
Upvotes: 1
Reputation: 42690
Is the Java-Card you are using a JCOP engineering card?
The error message "Conditions of use not satisfied" usually means that one required step is missing in the upload process, e.g. authentication.
Make sure the following steps are executed successfully before:
Upvotes: 1