Hello,

rayteng wrote:
> java.lang.ClassNotFoundException: CardService implementing interface
> opencard.opt.iso.fs.FileAccessCardService

This exception is raised because OCF did not find in the set of
declared CardServices one that 1) knows how to handle files (i.e.,
that implements FileAccessCardService java interface) and 2) which
corresponds to the inserted smartcard (this is decided in what is
called a factory). See the OCF 1.2 Programmer's Guide at:

        http://www.opencard.org/docs/pguide/PGuide.html

for more details on this mechanism.

Also, the guide explains how to declare the set of known
CardServices (using property files). If the set is empty, this
exception can only be thrown! :-)

> Actually I am new in SmartCard app, I have GemPlus 410 Card Reader, an
> 8k card and running in windows 2000, I write code using JDK1.1.7.
> Anohter thing is I wondering how can I find out my smartcard is memory
> card or microprocessor card?
> According to the supplier, there are certificate contain in the
> smartcard, so I just wondering whether I can use FileAccessCardService
> to acces the certificate information in the card or not, or I should
> use other way?

First thing is to know what is the card's family exactly. If it's a
"GPK" 8000, then you will find CardServices to handle files at the
following URL:


http://www.gemplus.fr/developers/technologies/opencard/cardservices/download.html

please download both "Generic" (for file-system features) and "GPK" (to
get the factory that will know how to recognize the card) components.

If it's a memory card, I don't think there are any CardServices
available yet.. In fact one has to use very low-level calls (i.e.,
CardTerminal's "sendTerminalCommand") in order to send commands to
a memory card, then you have to know the specs in order to know
what to send.. I have a sample code from Jean Pascal Riss doing
this. I can send it to you by email in case of interest).

Hope it'll help.

Cheers,
Christophe.

 = "Tyranny is always better organized than freedom." --Charles Peguy =
--
-------------------------------------------------------------
[EMAIL PROTECTED] - Gemplus Research Lab
Phone: +33 4-42-36-57-83 | Disclaimer: I don't speak for Gemplus
Gemplus doesn't speak for me... it is better that way!
-------------------------------------------------------------


---
> 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.

Reply via email to