我如何解决这个问题 -> 错误:无法创建 Java 虚拟机
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/53165901/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How I solve this -> Error: Could not create the Java Virtual Machine
提问by Winda Agusthia Netto
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)
错误:无法创建 Java 虚拟机。错误:发生了致命异常。程序将会退出。无法识别的选项:- C:\Users\Win 8.1 Pro\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53:Java 返回:1 BUILD FAILED(总时间:0 秒)
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?
我试图在控制面板中设置但不起作用。我下载了 JRE 1.8.0_191 但我真的不明白使用它......我该如何解决这个问题?
采纳答案by George Chen
Solutions:1.Check the Java environment
解决方法:1.检查Java环境
2.Some programs have memory setting and some memory setting is set beyond VM range.
2.有些程序有内存设置,有些内存设置超出了VM范围。
3.Check if java.exe
、javaw.exe
、javaws.exe
are generated under C:\Windows\System32
,just delete them.
3.检查java.exe
、javaw.exe
、 下javaws.exe
是否生成C:\Windows\System32
,删除即可。
4.Displays the definition parameters in the environment variables to set the VM size. Global environment variable name: _JAVA_OPTIONS
4.显示环境变量中的定义参数来设置VM大小。全局环境变量名称:_JAVA_OPTIONS
value:-Xmx512m
值:-Xmx512m