如何消除错误 Picked up _JAVA_OPTIONS: -Xmx512M?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38227977/
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 to remove error Picked up _JAVA_OPTIONS: -Xmx512M?
提问by divan
In java program, When I try to compile some code it creates an error I get this message:
在 java 程序中,当我尝试编译一些代码时,它会创建一个错误,我收到以下消息:
Picked up _JAVA_OPTIONS: -Xmx512M
Picked up _JAVA_OPTIONS: -Xmx512M
what type of error is this the page Suppressing the "Picked up _JAVA_OPTIONS" message
cannot solve problem ,how to change system variable in windows 7 ??
这是什么类型的错误抑制“Picked up _JAVA_OPTIONS”消息的页面
无法解决问题,如何在 Windows 7 中更改系统变量?
回答by Jonathan
Part of my original answer was truncated, so here is the edited answer:
我的原始答案的一部分被截断了,所以这里是编辑后的答案:
From the Start Buttong, search for System, then launch "System" from your search results. In the new window, select Advanced System Settings. A new window will open, select the Advanced tab, then click on the Environment button. In this new window, select _Java_Options, in the user variables and then click on Delete. If the lower section, System Variables, is greyed out and you cannot delete _Java_Options there, you will need to log on as an administrator, or attempt to run the "System" command as Administrator.
从开始按钮,搜索系统,然后从搜索结果中启动“系统”。在新窗口中,选择高级系统设置。将打开一个新窗口,选择“高级”选项卡,然后单击“环境”按钮。在这个新窗口中,在用户变量中选择_Java_Options,然后单击删除。如果下面的部分 System Variables 是灰色的,并且您不能在那里删除 _Java_Options,您将需要以管理员身份登录,或尝试以管理员身份运行“系统”命令。
回答by SUBHASIS MONDAL
Go to my computer and right click on top of that and click on properties, a new window will open like below.
转到我的电脑并右键单击它并单击属性,将打开一个新窗口,如下所示。
then click on advanced system setting
然后点击高级系统设置
then click on environment variable and delete _JAVA_OPTIONS from user variable and then try again.
然后单击环境变量并从用户变量中删除 _JAVA_OPTIONS ,然后重试。
回答by Tohid Makari
please check your JDKversion. Maybe you need to change or upgrade your JDKversion.
请检查您的JDK版本。也许您需要更改或升级您的JDK版本。
回答by NonnoAndre
You have to delete your environment variable named "_JAVA_OPTIONS" going to system, advance settings. Save, close your project and restart.
您必须删除名为“_JAVA_OPTIONS”的环境变量,进入系统,高级设置。保存,关闭您的项目并重新启动。