Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
got a "Network is unreachable" exception in Java?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
larmbr
n00b
n00b


Joined: 06 Jun 2012
Posts: 34

PostPosted: Tue Nov 27, 2012 7:47 am    Post subject: got a "Network is unreachable" exception in Java? Reply with quote

I write a small java application, but when I ran it I got exception like this:
Code:
java.net.SocketException: Network is unreachable
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
   at java.net.Socket.connect(Socket.java:579)


I hava try it on other's machine and it works well

I think I hava some mis-setting on my machine. Could anyone help?
Back to top
View user's profile Send private message
kazanture
n00b
n00b


Joined: 29 Nov 2012
Posts: 1

PostPosted: Thu Nov 29, 2012 10:15 am    Post subject: Reply with quote

"Network is unreachable" means just that. You're not connected to a network.
Have you tried ping?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum