Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Aug 2015 12:26:47 -0700
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Alex de Kruijff <akruijff@dds.nl>
Cc:        freebsd-java@freebsd.org
Subject:   Re: OpenJDK8 SUNWprivate_1.1 bug with sun.nio.fs.DefaultFileSystemProvider.create()
Message-ID:  <20150809192647.GA99038@misty.eyesbeyond.com>
In-Reply-To: <55C47572.4070907@dds.nl>
References:  <55C47572.4070907@dds.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 07, 2015 at 11:08:02AM +0200, Alex de Kruijff wrote:
> 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

If that is the actual output then it looks like you're doing something
very strange, since you have native libraries from both openjdk8 and
openjdk7 listed there.  They won't work together like that.

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org



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