java 1.6 not detecting smartcardlibrary
Tilman Linneweh
arved at FreeBSD.org
Sun Oct 25 10:59:28 UTC 2009
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?
More information about the freebsd-java
mailing list