title: java --version doesn't work in the command line
body: <p>I tried <code>java --version</code> in the command line and I get :</p>
  
  <pre><code>Unrecognized option: --version
  Error: Could not create the Java virtual machine
  Error: A fatal exception has occurred. Program will exit.
  </code></pre>
  
  <p>Everything was working fine until I installed jre 7 (I had jdk 1.6 preinstalled )
  So, I uninstalled the previous versions, restarted and then installed fresh jdk 7u5 windows i586.</p>
  
  <p>Still I get the same problem. Can anyone help me with this?<br/>
  I am unable to install and run maven for this reason.   </p>