hi just now i have started the java.net and the very first program give me an error my program is ..
it's giving me error.. computer1/200.200.200.38 Exception in thread "main" java.net.UnknownHostException: www.rediff.com at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getAllByName0(Unknown Source) at java.net.InetAddress.getByName(Unknown Source) at InetAddressTest.main(InetAddressTest.java:7)
i think it is beacause in our office we are having LAN and server is having NT4.0 with service pack 6.. is the problem beacuse of LAN or anything wrong in a program itself..
<B>Bhupendra Mahajan</B>
Mahajan Bhupendra
Ranch Hand
Joined: Dec 01, 2000
Posts: 118
posted
0
Hey one day has passed please give me answer..
ping203
Greenhorn
Joined: Jan 10, 2002
Posts: 5
posted
0
Hi, The error message tells you what is wrong. Exception in thread "main" java.net.UnknownHostException: www.rediff.com. Your network does not know what "www.rediff.com" is(Unknown host). It is like you type some address and your browser returns you a Page Not Found message. btw, your code works fine on my machine and I got the output: www.rediff.com/64.41.191.70 Ping
Mahajan Bhupendra
Ranch Hand
Joined: Dec 01, 2000
Posts: 118
posted
0
we use internet frequently as we have a common connection to server and wingate(software that distributes internet to LAN clients)... so if i type rediff.com in by browser i didn't get any error but the web site... what should be the problem???
Laudney Ren
Ranch Hand
Joined: Jan 06, 2002
Posts: 111
posted
0
I'm just wondering, if main() can throw any exception. Maybe you can't change the signature. It is and always should be: public static void main(String args[])
" Veni, vidi, vici "<br />" I came, I saw, I conquered "