From owner-freebsd-java@freebsd.org Fri Aug 7 09:14:58 2015 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 223B49B5336 for ; Fri, 7 Aug 2015 09:14:58 +0000 (UTC) (envelope-from akruijff@dds.nl) Received: from smtpgw.dds.nl (smtpgw.dds.nl [91.142.252.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E01E86D5 for ; Fri, 7 Aug 2015 09:14:57 +0000 (UTC) (envelope-from akruijff@dds.nl) Received: from [192.168.1.2] (195-241-24-75.ip.open.net [195.241.24.75]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtpgw.dds.nl (Postfix) with ESMTPSA id 9B1EF7F90C for ; Fri, 7 Aug 2015 11:08:02 +0200 (CEST) Message-ID: <55C47572.4070907@dds.nl> Date: Fri, 07 Aug 2015 11:08:02 +0200 From: Alex de Kruijff User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-java@FreeBSD.org Subject: OpenJDK8 SUNWprivate_1.1 bug with sun.nio.fs.DefaultFileSystemProvider.create() Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.7 at smtpgw.dds.nl X-Virus-Status: Clean X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2015 09:14:58 -0000 Hi, I've found a bug for the native OpenJDK8. When a DefaultFileSystemProvider is being created an UnsatisfiedLinkError is thrown. This problem does not happen on Windows or FreeBSD/OpenJDK7. So each of the following lines of code > java.nio.file.spi.FileSystemProvider provider = > sun.nio.fs.DefaultFileSystemProvider.create(); > java.nio.file.FileSystem aDefault = > java.nio.file.FileSystems.getDefault(); > java.nio.file.Path path = new java.io.File("test", ".").toPath(); results in the exception > java.lang.UnsatisfiedLinkError: > /usr/local/openjdk8/jre/lib/amd64/libnio.so: > /usr/local/openjdk7/jre/lib/amd64/libnet.so: version SUNWprivate_1.1 > required by /usr/local/openjdk8/jre/lib/amd64/libnio.so not defined Yours, Alex FreeBSD Aphrodite 10.1-STABLE FreeBSD 10.1-STABLE #0 r282111: Mon Apr 27 20:28:11 UTC 2015 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64