Search code examples
javaerror-handlingwindows-10virtual-machinenetbeans-8

How I solve this -> Error: Could not create the Java Virtual Machine


Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Unrecognized option: - C:\Users\Win 8.1 Pro\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 0 seconds)

I tried to setting in control panel and not work. I downloaded JRE 1.8.0_191 but I don't really understand to use it... How can I solve this one?


Solution

  • Solutions:1.Check the Java environment

    2.Some programs have memory setting and some memory setting is set beyond VM range.

    3.Check if java.exejavaw.exejavaws.exe are generated under C:\Windows\System32,just delete them.

    4.Displays the definition parameters in the environment variables to set the VM size. Global environment variable name: _JAVA_OPTIONS

    value:-Xmx512m