user7266839
user7266839

Reputation:

Unable to create java virtual machine

I am using Windows 10 64-bit. I have installed Oracle JDK8 64-bit and have setup the JAVA_HOME environment variable properly. When I run the command

java -v

it gives me the following error

Unrecognized option: -v
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I have tried setting the environment variable _JAVA_OPTIONS to -Xmx512M and -Xmx1024M but that does not solve the issue.

Any help would be appreciated.

Thanks

Upvotes: 3

Views: 1111

Answers (1)

litelite
litelite

Reputation: 2849

Java has no -v option. Instead use -version 

Upvotes: 1

Related Questions