yes! :-D now it's working... well, at least
StartOpenCard.class
I'll try more when I'll access physically to the
station.
I missed this directory: /usr/lib/smartcard
and specially /usr/lib/smartcard/libSCMI2CNative.so
thx you sooo much,

ss


--- Chaskiel M Grundman <[EMAIL PROTECTED]> wrote:
> --On Tuesday, December 02, 2003 18:31:42 +0100
> Ludovic Rousseau
> <[EMAIL PROTECTED]> wrote:
> 
> > Alternatively you can try to use ocfBridge [1] (I
> think it is the source
> > code of PCSCshim).
> 
> ocfbridge does the opposite of PCSCshim. Its an OCF
> terminal driver that
> uses the PCSC api to communicate with readers.
> 
> PCSCshim is an alternate libpcsclite that speaks
> sun's proprietary "SCF"
> protocol to a local java server ('ocfserv'). Ocfserv
> uses opencard to
> communicate with readers (as well as other things,
> but only for the 3 cards
> that sun supports).
> 
> Since there's no PCSC driver for sun's internal
> reader, ocfbridge isn't
> useful in this case.
> 
> > Now, I try to make my OCF programs running on this
> > station but can't figure how to access the reader.
> 
> I haven't used OCF much (there not being a
> cardservice library for the most
> common card I use)
> 
> if you're writing to the opencard api directly, you
> probably don't want to
> use ocfserv. instead, what you should probably do is
> point your ocf
> application at sun's ocf libraries (put everything
> in
> /etc/smartcard/ocf.classpath in your classpath...).
> Run your app with the
> following properties set:
>   -Djava.library.path=/usr/lib/smartcard:/usr/lib
>  
>
-DOpenCard.loaderClassName=com.sun.opencard.utils.OCFPropertyFileLoader
> 
> (I got this info by killing any running ocfserv,
> running ocfserv -D in a
> shell window, and then using the 'smartcard' client
> program to get ocfserv
> to initialize itself)
> 
> Unfortunately, I couldn't get
> demos.samples.StartOpenCard to work with this
> setup. Instead, I downloaded OCF 1.2 from
> opencard.org and used their base
> jars along with /usr/share/lib/smartcard/scmiscr.jar
> and
> /usr/share/lib/smartcard/smartos.jar. That made
> things work somewhat:
> 
>
------------------------------------------------------------
> start use case: start OpenCard
> 
> I2CDrive : Start I2CDrive ...
> I2CDrive : Set Listener on I2CDriver 
> I2CDrive : Try to Open I2CDriver on /dev/scmi2c0
> I2CDrive : I2CDriver Opened
> I2CDrive : I2CDriver Opened
> I2CDrive : Done ...
> I2CDrive :  GetCardState :0
> Session::  Session opened1
> Session::  Session opened1
> I2CDrive : card removed 0xA1
> Session:: Card Removed!
> configuration was done.
> OpenCard is  started!
> try again anyway
> 
> 
> finished use case: start OpenCard
>
------------------------------------------------------------
> I2CDrive : card inserted 0xA0
> Session:: Card inserted! 
> 
> but it didn't actually quit on it's own.
> It seems like you may need sun's ocf.jar as well to
> provide dependencies
> for  the other sun classes.
> 
> What errors are you seeing?
> 
> 
> _______________________________________________
> Muscle mailing list
> [EMAIL PROTECTED]
> http://lists.musclecard.com/mailman/listinfo/muscle


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.musclecard.com/mailman/listinfo/muscle

Reply via email to