Larry
Yes, that is the solution
The code is
URL url = new URL(urlString);
URLConnection conn = url.openConnection();
If urlString is file:///C:/namefile.log ( for example ), all works fine.
With only 2 slash (file://C:/namefile.log), an exception is thrown
java.net.UnknownHostException: C
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.NetworkClient.openServer(Unknown Source)
at sun.net.ftp.FtpClient.openServer(Unknown Source)
at sun.net.ftp.FtpClient.openServer(Unknown Source)
at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown Source)
For example, in some web applications I put the mapper files in
WEB-INF/classes and I can modify them without recompiling the java
classes or re-creating any jar file.
S!
D.
2010/6/8 Chema <demab...@gmail.com>: