title: Run java application as administrator priviledge in XP
body: <p>I have created a small program in java which reads the UninstallString of an application from registry and then using </p>
  
  <pre><code>Process p = Runtime.getRuntime.exec("command") 
  </code></pre>
  
  <p>to uninstall this application. But this task require administrator priviledge.</p>
  
  <p>On Windows Vista, 7 and 8 this work fine by creating a bat file with the following command "java -jar java_app.jar", right click on the bat file and run as administrator.</p>
  
  <p>But on XP, my account is an administrator account but still it fails to run the java program as administrator.</p>
  
  <p>Can anyone provide me with some solutions which can solve this problem?</p>