Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Oct 2009 11:59:20 +0100
From:      Tilman Linneweh <arved@FreeBSD.org>
To:        freebsd-java@FreeBSD.org
Cc:        arved@FreeBSD.org
Subject:   java 1.6 not detecting smartcardlibrary
Message-ID:  <20091025105920.GF1124@arved.priv.at>

next in thread | raw e-mail | index | archive | help
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?





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091025105920.GF1124>