Ok, I just checked with my installation, jpcsc version 0.3, and two readers,
and I get two reader names back from jcpsc.
Can you check your jpcsc version and eventually download the newer one
from linuxnet.com ? And can you let me know whether it works ?
ciao
Marcus
Pauley, John writes:
> Hello,
> I'm having issues with the Context class ListReaders method. It appears
> that no matter how many readers have been registered with pc/sc, ListReaders
> only returns the first reader. For example, there are 3 readers registered
> with pc/sc, but in the following code snippet, c.ListReaders() returns an
> array of one string, that string being the first registered reader:
>
> Context c = Context.c;
> String[] sa = c.ListReaders();
> for(int i=0;i<sa.length;i++){
> System.out.println("Reader["+ i + "] = " + sa[i]);
> }
>
> I looked at Context.c, but saw nothing that looked out of the ordinary, but
> I am not too familiar with jni. Any comments or suggestions?
>
> Thanks,
> John
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
> <TITLE>jpcsc</TITLE>
> </HEAD>
> <BODY>
>
> <P><FONT SIZE=2>Hello,</FONT>
> <BR><FONT SIZE=2>I'm having issues with the Context class ListReaders method.
>It appears that no matter how many readers have been registered with pc/sc,
>ListReaders only returns the first reader. For example, there are 3 readers
>registered with pc/sc, but in the following code snippet, c.ListReaders() returns an
>array of one string, that string being the first registered reader:</FONT></P>
>
> <P><FONT SIZE=2>
>Context c =
>Context.c;</FONT>
> <BR><FONT SIZE=2>
>String[] sa = c.ListReaders();</FONT>
> <BR><FONT SIZE=2> for(int
>i=0;i<sa.length;i++){</FONT>
> <BR><FONT SIZE=2>
>System.out.println("Reader["+ i + "] = " + sa[i]);</FONT>
> <BR><FONT SIZE=2> }</FONT>
> </P>
>
> <P><FONT SIZE=2>I looked at Context.c, but saw nothing that looked out of the
>ordinary, but I am not too familiar with jni. Any comments or
>suggestions?</FONT></P>
>
> <P><FONT SIZE=2>Thanks,</FONT>
> <BR><FONT SIZE=2>John</FONT>
> </P>
>
> </BODY>
> </HTML>
***************************************************************
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
***************************************************************