Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Aug 2015 11:08:02 +0200
From:      Alex de Kruijff <akruijff@dds.nl>
To:        freebsd-java@FreeBSD.org
Subject:   OpenJDK8 SUNWprivate_1.1 bug with sun.nio.fs.DefaultFileSystemProvider.create()
Message-ID:  <55C47572.4070907@dds.nl>

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




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