title: Running Jar in Remote Access VS Jar in Shared Folder?
body: <p>I have a jar in SERVER-A that reads from a file within SERVER-A. When I Remote SERVER-A (Remote Desktop Connection) and run it, it works fine.
  But when I run the same Jar from a shared folder of SERVER-A via my local machine(not SERVER-A) it can not find the file.</p>
  
  <p>I tried to print the current directory of the jar when its is running. 
  1. When running from Remote access to SERVER-A i got "E:\ISO_Tester", This is the correct path.
  2. When running from Shared folder of SERVER-A i got "C:\Windows" which I think is from my local machine instead of SERVER-A.</p>
  
  <p>How can I make the jar read from the server when its being accessed from shared folder?
  P.S. I'm using environment variable for the file location to be read.</p>
  
  <pre><code>String propFile=System.getenv("OTHERS_HOME") + "\\conf\\FILE_TO_READ.txt";
  </code></pre>