LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Java getHostAddress Exception -- Suse (https://www.linuxquestions.org/questions/programming-9/java-gethostaddress-exception-suse-315878/)

scherl 04-21-2005 08:40 PM

Java getHostAddress Exception -- Suse
 
We are running a Java application that calls
InetAddress.getLocalHost().getHostAddress() and we are getting
the Exception in main thread UnknownHostException. We have
tried everything and it looks like our hostname is set properly,
but have not been able to get around this error.

This application works fine in Gentoo Linux and also Fedora Core 3,
but we are trying to port it to Suse and it just doesn't work. Our
network configuration seems to be fine. We have checked it
many times. Somehow the problem must have something to do
with the specifics of Suse.

Any help will be appreciated.

Rich

Richard Scherl
Monmouth University
New Jersey

ardentphil69 04-23-2005 03:58 AM

syntax error
 
hi
copy paste the entire program then
compile it fresh
it may run:)


All times are GMT -5. The time now is 11:38 PM.