Wednesday, December 4, 2013

java.net.UnknownHostException: D

You can often find this exception or something similar (UnKnownHostException : C , UnKnownHostException : E, etc ) when trying to access a file on your machine (or on  server) and the file name is wrong.
mostly the file name begins with "file://D" or "file://C" ... All you need to do is to
replace "//" with "///" 
i.e. begin the file name with "file:///D"
enjoy

No comments:

Post a Comment