title: Java: Unable to access jarfile when running as an admin
body: <p>I have a jar file named test.jar, which I am running with a batch script from the same folder.
  Here's the batch code:</p>
  
  <pre><code>java -jar test.jar
  pause
  </code></pre>
  
  <p>The jar itself works with no problems, and I can run it just fine.
  However, if I try to run the batch file as an administrator (by right clicking it and choosing "Run as Administrator"), I get the following error:</p>
  
  <pre><code>Error: Unable to access jarfile test.jar
  </code></pre>
  
  <p>I'm using Windows 8.1, but this also happened on a machine running Windows 7.
  What can I do to be able to run this as an Administrator?</p>