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

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.1\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 0 seconds)

我尝试在控制面板中进行设置,但没有用。 我下载了 JRE 1.8.0_191 但我不太明白如何使用它... 我该如何解决这个问题?

解决方案:1.Check Java 环境

2.Some 程序有内存设置,有些内存设置超出了 VM 范围。

3.Check如果java.exejavaw.exejavaws.exeC:\Windows\System32下生成,删除即可。

4.Displays在环境变量中定义参数来设置VM大小。 全局环境变量名:_JAVA_OPTIONS

值:-Xmx512m