title: Is it possible to write files to a remote directory using java?
body: <p>I have the directory mapped on my machine so that I can browse and write to it via Windows explorer. I would like to write files via java.          </p>
  
  <pre><code>File f = new File("http://dev1:8080/data/xml/myTestFile123.xml");
  
  f.createNewFile();
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <pre><code>Exception in thread "main" java.io.IOException: The filename, directory name, or volume label syntax is incorrect
      at java.io.WinNTFileSystem.createFileExclusively(Native Method)
      at java.io.File.createNewFile(Unknown Source)
      at MainTest.createTestFile(MainTest.java:156)
      at MainTest.main(MainTest.java:72)
  </code></pre>
  
  <p>Is there any way to write files to a mapped directory that has the http:// in front?  Because thats the way the directory is provided to me.  It is a virtual directory that an oracle database is creating.</p>