java 1.6 not detecting smartcardlibrary

View: New views
1 Messages — Rating Filter:   Alert me  

java 1.6 not detecting smartcardlibrary

by Tılman Linneweh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello list!

I am using the javax.smartcardio class to access a SmartCard Reader.

I have been trying both openjdk6 and jdk16 ports.
The problem: java does not detect the installed pcsclite library in /usr/local/lib per default like it does on Linux and MacOSX

Testprogramm:

import javax.smartcardio.*;
import java.io.*;
import java.util.*;

public class Test {

        public static void main(String[] args) {
                String libpath = System.getProperty("sun.security.smartcardio.library");

                System.out.println("Smartcardlibrary: " + libpath);
                System.out.println("Smartcardio available: " + TerminalFactory.getDefaultType() + " ");
        }
}

If i set the Property sun.security.smartcardio.library to /usr/local/lib/libpcscplite.so the Testprogram works as expected.

The Soucecode in Question seems to be the file PlatformPCSC.java

http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Platform/solaris/sun/security/smartcardio/PlatformPCSC.java.htm

Now i am wondering if maybe $LIBISA is not set correctly? I can't find the place in the Sourcecode where it is set.

Any ideas?


_______________________________________________
freebsd-java@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "freebsd-java-unsubscribe@..."