title: Java: Accessing Windows files from Linux machine
body: <p>I've got a Java program that saves a new PDF file to a shared network location.</p>
  
  <p>On Windows, it works fine, using backslashes</p>
  
  <pre><code>serverDirName=\\\\10.20.1.1\\c$\\input
  </code></pre>
  
  <p>To try skip all the complexity of permissions, I've set the sharing on that folder in Windows to Read/Write for "Everyone".</p>
  
  <p>I'd like to try run the program from a linux server.<br>
  Straight off the bat, I get:</p>
  
  <pre><code>Error: java.io.FileNotFoundException: \\10.20.1.1\e$\input/8106070121089/Doctor-Diagnosis-201003291.pdf (No such file or directory)
  </code></pre>
  
  <p>So I tried switching to:</p>
  
  <pre><code>serverDirName=//10.20.1.1/e$/input
  </code></pre>
  
  <p>and got:</p>
  
  <pre><code>Error: java.io.IOException: Directory '/10.20.1.1/e$/input/8103205007085' could not be created
  </code></pre>
  
  <p>I presume there's some basic network requirements that I'm lacking, in order to communicate with a Windows machine, but any idea what that is?</p>
  
  <p>(OS is Centos)</p>