"Picked up _JAVA_OPTIONS: -Xmx512M" error while launching Minecraft
Solution 1
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.
Solution 2
On Unix specifying -Xms was giving me trouble. If you just use -Xmx there shouldn't be any problems. -XX:MaxPermSize as far as I know is not necessary.
Solution 3
Commonly caused by poor programming practice, something on your computer is setting the environment variable _JAVA_OPTIONS.
Razer has a known issue with doing this.
You can get around it with a fairly dirty hack by setting up your own _JAVA_OPTIONS environment variable https://kb.wisc.edu/cae/page.php?id=24500
Set the values to your desired heap sizes.
If you have Razer Synapse, turning it off will not always fix the problem. You may have to uninstall it or tell it to not start on system startup then restart.
Updating to the latest version of synapse may fix the problem at some point in the future when Razer eventually fixes it. (23/12/2014 || 12/23/2014) Confirmation from Razer that a patch is in the works, no ETA provided.
Solution 4
Goto Start Menu, type Environment Variables, click the top option. Then in both System and User variables, delete the values for _JAVA_OPTIONS from your Environment Variables.
This video will show you how to do it: https://www.youtube.com/watch?v=JF_o8WNt3hs
Note: If System Variables are greyed out, type in System in the start menu, and then goto Advanced System Settings on the right side. This will ensure you're accessing Environment Variables as an administrator user.
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Admin
Updated on July 16, 2020Comments
-
Admin almost 4 years
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.