Error:could not create the Java Virtual Machine Error:A fatal exception has occured.Program will exit : <p>I have just installed Java SE Development Kit 8u91 on my 64 bit Windows-10 OS. I set my <em>path</em> variables . I tried <strong>java --version</strong> in my command prompt it gave me an error.</p>

<pre><code>c:\Users\Onlymanu&gt;java --version
Unrecognized option: --version    
Error: Could not create the Java Virtual Machine. 
Error: A fatal exception has occurred. Program will exit.
</code></pre>

<p>But when i tried <strong>java -version</strong> it worked. </p>

<p>I tried initializing <em>_JAVA_OPTIONS</em>  environment variable and ever tried re-installation none of them worked. Can any one help me please?</p>
