On Friday, November 16, 2001, at 09:01  am, Eelco Daams wrote:

> Hi,
>
> I think I'm doing everything right, however I get this error. When I add
> the path where libOCFPCSC1.so resides to the LD_LIBRARY_PATH environment
> variable, I get the following error:

I assume you get an unresolved symbol error if you don't put 
libOCFPCSC1.so in LD_LIBRARY_PATH. The fact that you get the following 
error proves  that the JNI call worked.

> -
> PCSC Exception in method SCardListReaders: error getting length of
> reader list
> return code = 80100003
> -

This is a PCSC error:
pcsclite.h:#define SCARD_E_INVALID_HANDLE          0x80100003

In order to "debug" my OCF connection, I usually use the GetCardID 
application from the OCF examples. I copy the following files in a 
folder:
- base-core.jar
- pcsc-wrapper-src.jar
- base-opt.jar
- GetCardID.java
- opencard.properties

To compile:
  javac -classpath base-core.jar:base-opt.jar:pcsc-wrapper-src.jar 
GetCardID.java

To Run:
java -classpath base-core.jar:base-opt.jar:pcsc-wrapper-src.jar: 
GetCardID

If you run this with a card in your reader, you should see its ATR.

I hope this helps.

JLuc.

***************************************************************
Unix Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/
To unsubscribe send an email to [EMAIL PROTECTED] with
unsubscribe sclinux
***************************************************************

Reply via email to