From owner-freebsd-java@FreeBSD.ORG Fri Jun 6 11:08:24 2003 Return-Path: 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 EDCDA37B401 for ; Fri, 6 Jun 2003 11:08:24 -0700 (PDT) Received: from web20511.mail.yahoo.com (web20511.mail.yahoo.com [216.136.175.150]) by mx1.FreeBSD.org (Postfix) with SMTP id 8D43E43F3F for ; Fri, 6 Jun 2003 11:08:24 -0700 (PDT) (envelope-from yoshideska@yahoo.com) Message-ID: <20030606180823.70140.qmail@web20511.mail.yahoo.com> Received: from [66.171.37.20] by web20511.mail.yahoo.com via HTTP; Fri, 06 Jun 2003 11:08:23 PDT Date: Fri, 6 Jun 2003 11:08:23 -0700 (PDT) From: sagsag agsdgasg To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Java 1.4.1 InetAddress.getLocalHost() throws unexpected exception X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2003 18:08:25 -0000 x86 FreeBSD 4.8 Java 1.4.1 InetAddress.getLocalHost() throws unexpected exception. This program works on "OS X" and windows when the program ( below ) is run the FreeBSD 4.8 output is: # java -version java version "1.4.1-p3" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-p3-root_05_jun_2003_15_07) Java HotSpot(TM) Client VM (build 1.4.1-p3-root_05_jun_2003_15_07, mixed mode) # java Junk running java.net.UnknownHostException: : # the "OS X" output is: -bash2.05b @ ~ % java -version java version "1.4.1_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-39) Java HotSpot(TM) Client VM (build 1.4.1_01-14, mixed mode) -bash2.05b @ ~ % java Junk running .local./192.168.123.15 end -bash2.05b @ ~ % /* file Junk.java */ import java.io.*; import java.net.*; public class Junk { public static void main( String[] argv ) { try { System.out.println( "running" ); InetAddress x = InetAddress.getLocalHost( ); System.out.println( x.toString( ) ); System.out.println( "end" ); } catch( IOException E ) { System.out.println( E.toString() ); } } } __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com