How to remove error Picked up _JAVA_OPTIONS: -Xmx512M?

纵然是瞬间 提交于 2019-11-28 05:30:20

问题


In java program, When I try to compile some code it creates an error I get this message:

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 ??


回答1:


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.




回答2:


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.




回答3:


You have to delete your environment variable named "_JAVA_OPTIONS" going to system, advance settings. Save, close your project and restart.




回答4:


please check your JDK version. Maybe you need to change or upgrade your JDK version.



来源:https://stackoverflow.com/questions/38227977/how-to-remove-error-picked-up-java-options-xmx512m

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!