Loading Applet on a Smart Card
843851Dec 19 2007 — edited Aug 27 2008I am new to JavaCard development so forgive me if you find the question stupid.
I am trying to load an applet on a NXP based Sm@rtCafe Expert card. I have completed the following steps:
- Compiled the applet
- Converted the package into a cap file using the Converter tool.
- Generated the upload scrpit file using the scriptgen tool and appended the requisite powerup and powerdown commands.
Now when I try to upload the applet through the apdutool, I get an exception.
Here is the apdutool command I am using:
apdutool -t0 upload
Where upload is the name of my script file.
I am getting the following exception:
Opening connection to localhost on port 9025.
java.net.ConnectException: Connection refused: connect
So my card reader is probably not on the default port is what I gather. How do I find out what port is my reader at if that is the problem.
For additional information I am using JavaCard 2.2.2 development kit along with JDK1.5. My card reader is a USB based SCR3310 reader manufacture by SCM Microsystems.
Any help in this regard will be greatly appreciated.
Thanks.