Why does < Microsoft Windows RMI/my java debugger/IDE/other> hang for a couple of minutes if my PC is not dialed up to the Internet?
The Java language has networking support built in. When the program starts the Winsock DLL automatically gets loaded. The first thing this does is to try to resolve the fully qualified domain name for your machine under the name “localhost”. If your system doesn’t have this name mapped, it will try to query a nameserver on the internet, which is typically (on a PC) your dialup ISP. So it either prompts you to connect to the ISP, or waits till the attempt times out. Some people say you can avoid the Win95 problem by giving your system another way to resolve DNS names. This tip has never worked for me. Edit the hosts file for your system so that localhost and the full domain name are both mentioned. On Windows 95 systems the hosts file is: %windir%\HOSTS (for example, C:\WINDOWS\HOSTS). On Windows NT systems the hosts file is: %windir%\System32\DRIVERS\ETC\HOSTS (for example, C:\WINNT\System32\DRIVERS\ETC\HOSTS). One gotcha under Win95 is that if the last entry in the hosts file is not c
Related Questions
- Why does my application sometimes receive a NativeSeqFile error when using JRIO and the Remote Method Invocation (RMI) - Java Remote Method Protocol (JRMP) to access MVS datasets?
- Why does < Microsoft Windows RMI/my java debugger/IDE/other> hang for a couple of minutes if my PC is not dialed up to the Internet?
- How Do You Play Monster Truck On Miniclip.Com?