title: Auto run a jar file from usb drive
body: <p>I have an runnable jar file in my USB drive. I need to auto-launch that jar, when the USB drive is plugged in to the system. I use Windows 7. I used autorun.inf to launch the jar file. But it doesn't work. Any suggestions please.</p>
  
  <p>autorun.inf</p>
  
  <pre><code>[Autorun]
  Open=myjar.jar
  Action=Start portable apps
  </code></pre>