Reputation:
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