Salut Fran�ois,

you get the ATR from the CardTerminal - this does not depend on any
CardService. After this an appropriate CardService is instantiated by
the by a CardServiceFactory. To tell OCF which Factories are available
you have to make entries in opencard.properties. Hence you have to make
an entry there for the CardServiceFactory you are going to use (depends
from the card you use), and to provide the CardService and corresponding
factory classes within the classpath. You cannot use
opencard.opt.iso.fs.FileAccessCardService.class without providing a
CardService Factory for the card type used.

An excerpt of my opencard.properties file is given here:

# with this seetings IBM's MFC card and a SetCos card with selfmade
CardService can be used
OpenCard.services = com.ibm.opencard.factory.MFCCardServiceFactory \
 com.ibm.opencard.factory.MFCCHVAutFactory \
 de.gsf.opencard.service.SetCosCardServiceFactory

For further information read the OCF developers manual please!
Regards
Hans

Fran�ois Leblanc schrieb:
> 
> I don't understand.... Of course I've checked that
> opencard.opt.iso.fs.FileAccessCardService.class
> is present in base-opt.jar and base-opt.jar is in CLASSPATH (in fact in
> directory ext of jre)...
> so why:
> 
>     FileAccessCardService cs = (FileAccessCardService)
>      sc.getCardService (FileAccessCardService.class, true);
> 
> give me an ClassNotFoundException ???
> It's true with other service, like PassThruCardService or my own
> servive...
> 
> Like you can see below I 've succed in reading ATR so I suppose to have
> rigth configuration.
> 
> Please help!!!
> 
> The first part give system properties, and the second concern the card and
> the opencard framework:
> 
> file.encoding=Cp1252
> java.specification.version=1.3
> user.name=fran�ois
> java.class.path=cev.jar
> java.vm.specification.version=1.0
> java.home=C:\PROGRAM FILES\JAVASOFT\JRE\1.3
> java.specification.vendor=Sun Microsystems Inc.
> user.language=fr
> awt.toolkit=sun.awt.windows.WToolkit
> java.vm.info=mixed mode
> java.version=1.3.0
> java.ext.dirs=C:\PROGRAM FILES\JAVASOFT\JRE\1.3\lib...
> sun.boot.class.path=C:\PROGRAM FILES\JAVASOFT\JRE\1.3\lib...
> java.vendor=Sun Microsystems Inc.
> file.separator=\
> java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport...
> sun.cpu.endian=little
> sun.io.unicode.encoding=UnicodeLittle
> user.region=FR
> sun.cpu.isalist=pentium i486 i386
> com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal@2f0db
> + name    Gemplus GemCore Based Readers 0
> + type    PCSC10
> + addr
> ATR?
> Obtained the following CardID:
> 
> 3B 68 00 00 80 66 A2 06 02 01 32 0E
> Historicals: 80 66 A2 06 02 01 32 0E
> as a string:  f    2
> 
> ClassNotFoundException:
> CardService implementing interface opencard.opt.iso.fs.FileAccessCardService
> 
> finished use case: AppletT2gViewer
> ------------------------------------------------------------
> 
> ---
> > 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.

-- 
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Hans Demski (mailto:[EMAIL PROTECTED])
Institute MEDIS, GSF Research Center (http://www-mi.gsf.de)
phone: +49-89-3187-4179, fax: +49-89-3187-3008
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>


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