From owner-freebsd-java@FreeBSD.ORG Sun Jul 9 22:01:08 2006 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5946416A4DA for ; Sun, 9 Jul 2006 22:01:08 +0000 (UTC) (envelope-from tarc@tarc.po.cs.msu.su) Received: from tarc.po.cs.msu.su (tarc.po.cs.msu.su [158.250.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7C7743D69 for ; Sun, 9 Jul 2006 22:01:07 +0000 (GMT) (envelope-from tarc@tarc.po.cs.msu.su) Received: from tarc.po.cs.msu.su (localhost [127.0.0.1]) by tarc.po.cs.msu.su (8.13.4/8.13.4) with ESMTP id k69M1Vnn056986 for ; Mon, 10 Jul 2006 02:01:31 +0400 (MSD) (envelope-from tarc@tarc.po.cs.msu.su) Received: (from tarc@localhost) by tarc.po.cs.msu.su (8.13.4/8.13.4/Submit) id k69M1Vwf056985 for freebsd-java@FreeBSD.org; Mon, 10 Jul 2006 02:01:31 +0400 (MSD) (envelope-from tarc) Date: Mon, 10 Jul 2006 02:01:31 +0400 From: Arseny Nasokin To: freebsd-java@FreeBSD.org Message-ID: <20060709220131.GA67231@tarc.po.cs.msu.su> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: mutt-ng/devel-r581 (FreeBSD) Cc: Subject: Java, IPv6 and IPv4 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, 09 Jul 2006 22:01:08 -0000 Envirounment: FreeBSD >=5.3 (earler FreeBSD I don't test), SUN Jdk 1.4 and 1.5 Exampe compilation for 1.4: cd ${PORTSDIR}/java/jdk14 && make install -DWITH_LINUX_BOOTSTRAP -DMINIMAL -DWITH_IPV6 Exampe compilation for 1.5: cd ${PORTSDIR}/java/jdk15 && make install -DWITHOUT_WEB -DWITH_IPV6 Problem: If I don't enable WITH_IPV6, IPv6 cannot be accessed from Java programs, but I have to use the IPv6 & IPv4 in my network. If IPv6 enabled in Java, I cannot connect to any IPv4 address even I set the system property `java.net.preferIPv4Stack=true'. This is not good, because not all applications start allow add to java's arguments and/or envirounment this one (for example, Opera browser). What I want to see: When I enable IPv6, I can connect to IPv4 addresses Wish: add ability to autoload system properties, specific for my box (for example, from ${LOCALBASE}/etc/java.properties) -- Best regards, Arseny Nasokin