title: how to run executable jar file on one machine from other machine
body: <p>I have a executable .jar file in a remote machine in windows environment. Now I want to execute this .jar file from other machine (windows environment) and need to open the console.</p>
  
  <p>So far, I have shared the specific .jar file to everyone and created a .bat file in local machine with the below content.</p>
  
  <pre><code>@ECHO OFF
  
  java -Xms512m -Xmx768m -XX:CompileThreshold=8000 -XX:PermSize=256m  -XX:MaxPermSize=512m -Dvendor=shell -DvendorFile="\\&lt;REMOTE MACHINE'S IP&gt;\WorkJars\servers_prod_remote.properties" -Dfile.encoding=UTF-8 -Dyfs.logall=N -jar "\\&lt;REMOTE MACHINE'S IP&gt;\Users\tcs\Desktop\Status Compare\statuscompare4.jar"
  </code></pre>
  
  <p>It works fine for some machine, but for other machine, it fails and it prompts for the username and password of the remote machine. </p>
  
  <p>Even if I try accessing the remote path from local using run command <code>\\&lt;REMOTE MACHINE'S IP&gt;\</code>, for some machine, it prompts for the username and passoword for security. </p>
  
  <p><a href="http://i.stack.imgur.com/85Q3t.png" rel="nofollow">Security Prompts</a></p>
  
  <p>So whenever, I use .bat file from those local machine, it says "Access Denied".</p>
  
  <p>Could anyone help me with this issue, as I don't want the username and password to be prompted and I just want to execute the .jar file without any issues.</p>