views:

70

answers:

2
failed to open file file://D/:/dev/test_all.html  JavaException: java.net.UnknownHostException: D

Any ideas for why this happens?

+4  A: 

Your URL is malformed. Instead of file://D/:/ you want file://D:/ -- no slash between the drive letter and the colon.

Etaoin
+1  A: 

the third / is in the wrong place, the file url is contructed with file:///<path>

Salandur
Adding an extra slash in front of the path fixed the problem. Apparently, file:///D/:/dev/test_all.html is considered legal.
Vidar Kongsli