title: Java error codes
body: <pre><code>Unrecognized option: -cp.HelloWorldApp
  Error: Could Not Create The Java Virtual Machine
  Error: A fatal exception has occurred. The program will exit 
  
  
  //Seperate codes or responses.
  
  
  Error: Registry Key 'Software\JavaSoft\Java Runtime Environment'\Current Version'
  has value '1.8', but '1.7' is required
  Error: Could not find Java SE Runtime Environment
  </code></pre>
  
  <p>I am trying to learn Java with Netbeans 8 IDE. I get the second response after inserting the <code>java -cp.HelloWorldApp</code> command in the command prompt. The first I get after reading that JDKs below 8 have 3 exe files <code>java</code>,<code>javaw</code>,<code>javaws</code> and should delete them, so I did. I have JDK 7 and 8 installed and I don't know which one I used for the code for the HelloWorldApp. Thank you.</p>