i have a problem with this code example.
import java.io.*;
import java.net.UnknownHostException;
import java.net.Socket;
import java.net.InetAddress;
public class Client
{
public static void main(String[] args)
{
try
{
System.out.println( "get host by name" );
System.out.println( "address = " + InetAddress.getByName(
"www.sun.com" ).getHostAddress() );
} catch (Exception e) { System.err.println(e); }
System.out.println("End ");
}
}
This is the output :
get host by name
java.lang.UnsatisfiedLinkError: getInetFamily
at java.net.InetAddress.<init>(InetAddress.java)
at
at Client.main(Client.java:12)
Is there anybody who can help me ? What' the reason for this error ?
My OS>>>>>>>SunOS db 5.5.1 Generic_103640-06 sun4u sparc SUNW,Ultra-1
Java>>>>> java full version "JDK1.1.4J"
Thank you for your help .
with kind regards
--
Thomas Damer
ZKM|Zentrum fu"r Kunst und Medientechnologie Karlsruhe
ZKM|Center for Art and Media Karlsruhe
K A R L S R U H E (Germany)
Lorenz Str. 19
76135 Karlsruhe
Tel. ++49 721 8100-1508
FAX: ++49 721 8100-1139
email: t...@zkm.de http://www.zkm.de