title: Unable to execute .jar file
body: <p>I'm having a problem with running .jar files. Here's what I've observed:</p>
  
  <ul>
  <li>running executable .jar by doubleclicking doesn't do anything, not even start a process</li>
  <li>running it from cmd by typing <code>javaw myfile.jar</code> doesn't do anything as well, I've redirected STDERR but it doesn't say anything</li>
  <li>because of school requirements I'm developing in BlueJ, when I run my code directly from this IDE, it works and starts processes like <code>java.exe</code> or <code>javaw.exe</code></li>
  <li>when I try to compile my console program from cmd and then run it by <code>java myclass</code>, it works</li>
  </ul>
  
  <p>I'm working on Windows 7 Professional with Java SE 7u51 JDK installed. I've already tried to uninstall anything that had "java" in its name and then install only JDK or only JRE. I've also tried to run jarfix or manually delete all .jar associations in registry. I've added my JRE path to other system variables. Nothing has worked for me.</p>
  
  <p>Please do you have any idea what to try next? Thank you.</p>
  
  <p><strong>Resolved:</strong><br>
  Thanks to the answers I've managed to resolve the problem with doubleclicking as well. I've just had to:</p>
  
  <ol>
  <li><a href="https://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows" rel="nofollow">set</a> the <code>JAVA_HOME</code> variable</li>
  <li>restart the computer</li>
  <li>run <a href="http://www.softpedia.com/get/Others/Miscellaneous/Jarfix.shtml" rel="nofollow">jarfix</a> </li>
  </ol>