Hi!
I'm new to smartcard-programming.
I'm trying to test the first application for reading a file from the IBM
Card that is sent with the book "Smart Card Development using Java" or
something like that, but it fails everytime.
The code looks like that:
...
SmartCard.start ();
CardRequest cr = new CardRequest (CardRequest.ANYCARD, null,
FileAccessCardService.class);
SmartCard sm = SmartCard.waitForCard (cr);
if (sm != null) {
FileAccessCardService facs =
(MFCFileAccess)sm.getCardService(FileAccessCardService.class,true);
CardFile root = new CardFile(facs);
CardFile file = new CardFile(root, ":c009");
...
During execution I get the message
[INFO ] com.ibm.opencard.service.MFC35CardServiceImpl.determinePath
--- message invalid
--- thread Thread[main,5,main]
--- source class com.ibm.opencard.service.MFC35CardServiceImpl
and constructing the CardFile-object results in a FileNotFoundException.
I'm using OCF1.2 that communicates over a pcsc-bridge with a
Towitoko-smartcardreader.
Thanks, Robert
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.