How to remove error Picked up _JAVA_OPTIONS: -Xmx512M?

后端 未结 4 1054
梦如初夏
梦如初夏 2020-12-10 09:32

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 i

相关标签:
4条回答
  • 2020-12-10 09:45

    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.

    0 讨论(0)
  • 2020-12-10 09:56

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

    0 讨论(0)
  • 2020-12-10 09:58

    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.

    0 讨论(0)
  • 2020-12-10 10:04

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

    0 讨论(0)
提交回复
热议问题