"Picked up _JAVA_OPTIONS: -Xmx512M" error while launching Minecraft

java, launcher, minecraft

Solution

Encountered same problem with android studio V2.0. Resolved using following steps:

- Removed `_JAVA_OPTIONS` from your Environment Variables.

- Edit relevant `studio.vmoptions` file specified here in order to increase IDE memory. (for me `-Xms1024m -Xmx1024m` worked fine.)

- Restart your system.

- Build apk now. It should work.

Problem

I am trying to launch Minecraft with these settings: ``` -XX:MaxPermSize=512M -Xms4096M -Xmx4096M ``` But I get this error: ``` [19:19:13 INFO]: Client> Error occurred during initialization of VM [19:19:13 INFO]: Client> Incompatible minimum and maximum heap sizes specified [19:19:13 INFO]: Client> Picked up _JAVA_OPTIONS: -Xmx512M [19:19:13 ERROR]: Game ended with bad state (exit code 1) [19:19:13 INFO]: Deleting C:\Users\Phil\AppData\Roaming\.minecraft\versions\1.6.4 Forge9.11.1.953\1.6.4-Forge9.11.1.953-natives-13645892457185 [19:19:13 INFO]: Ignoring visibility rule and showing launcher due to a game crash ``` I have checked, and some say its due to the Java environment settings, however, I have checked, and there are no Java arguments in the environments settings of Windows 8.1.

Original source