For Programmers: Free Programming Magazines  


Home > Archive > Java Help > April 2004 > UnknownHostException on Japanese Windows XP - Please Help!!!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author UnknownHostException on Japanese Windows XP - Please Help!!!
Dave Raskin

2004-04-27, 4:12 am

Hello,

I am running the following code on Japanese Windows XP:

String localHostName = java.net.InetAddress.getLocalHost().getHostName();

If the Computer name is in English, this works fine.

If the Computer name is in Japanese, I get an UnknownHostException in
InetAddress.java, line 1191.

If I run this same code on a Japanese Windows 2K, with a Japanese computer
name, it works fine.

I tried 3 different JREs: 1.3.1_11, 1.4.2_01, and 1.4.2._04 - same result.
This seems to be a difference between Windows 2K and XP.

I searched the web and the forums and I can't see any reference to this
specific problem. Is this a known issue?

Thanks in advance!

Dave Raskin
draskin@rimage.com


Ben Aroia

2004-04-29, 2:24 pm

"Dave Raskin" <draskin@rimage.com> wrote in message news:<408d5fc5$0$46515$39cecf19@news.twtelecom.net>...
> Hello,
>
> I am running the following code on Japanese Windows XP:
>
> String localHostName = java.net.InetAddress.getLocalHost().getHostName();
>
> If the Computer name is in English, this works fine.
>
> If the Computer name is in Japanese, I get an UnknownHostException in
> InetAddress.java, line 1191.
>
> If I run this same code on a Japanese Windows 2K, with a Japanese computer
> name, it works fine.
>
> I tried 3 different JREs: 1.3.1_11, 1.4.2_01, and 1.4.2._04 - same result.
> This seems to be a difference between Windows 2K and XP.
>
> I searched the web and the forums and I can't see any reference to this
> specific problem. Is this a known issue?
>
> Thanks in advance!
>
> Dave Raskin
> draskin@rimage.com

probly not. it could be the language. perhaps the servers are
diffrent? i dont really know.
-ben
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com