From owner-freebsd-java@FreeBSD.ORG Sun Oct 25 10:59:27 2009 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4ACE1065676; Sun, 25 Oct 2009 10:59:27 +0000 (UTC) (envelope-from arved@inci.arved.priv.at) Received: from inci.arved.priv.at (cl-1383.ham-01.de.sixxs.net [IPv6:2001:6f8:900:566::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7ACD38FC0C; Sun, 25 Oct 2009 10:59:26 +0000 (UTC) Received: from inci.arved.priv.at (localhost [127.0.0.1]) by inci.arved.priv.at (8.14.3/8.14.3) with ESMTP id n9PAxKYR046455; Sun, 25 Oct 2009 11:59:25 +0100 (CET) (envelope-from arved@inci.arved.priv.at) Received: (from arved@localhost) by inci.arved.priv.at (8.14.3/8.14.3/Submit) id n9PAxK4c046454; Sun, 25 Oct 2009 11:59:20 +0100 (CET) (envelope-from arved) Date: Sun, 25 Oct 2009 11:59:20 +0100 From: Tilman Linneweh To: freebsd-java@FreeBSD.org Message-ID: <20091025105920.GF1124@arved.priv.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: arved@FreeBSD.org Subject: java 1.6 not detecting smartcardlibrary X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Oct 2009 10:59:28 -0000 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?