pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD openjdk11, ipv6 support?


it seems like openjdk11 package on NetBSD does not support IPv6.

Test case:

public class listen {
static public void main(String[] args) throws Exception {
    ServerSocket sock = new ServerSocket();
    sock.bind(new InetSocketAddress("::1", 9812));

/usr/pkg/java/openjdk11/bin/java listen:

Exception in thread "main" Protocol family unavailable
        at java.base/ Method)
at java.base/
        at java.base/
        at java.base/
        at listen.main(

But /usr/pkg/java/openjdk8/bin/java works as expected.

This is with versions openjdk8-1.8.202 and openjdk11-
I didn't see anything in CVS logs indicating this would have changed, so
I didn't try updating. And especially not then openjdk8 version, because
it works.

Arto Huusko

Home | Main Index | Thread Index | Old Index