I've been trying to fix the error I'm getting lately, Starting Minecraft with forge sometimes works but othertimes it gives this error. Restarting my computer 5 to 6 times is the only solution. Minecraft is saying that the _JAVA_OPTIONS enviroment variable is limiting me to set the amount of RAM higher than 512mb, however Minecraft won't run with only half a gigabyte.
The problem is however the variable is not set, using the environment variable window, it is not there. Neither is it findable in the registry:
http://s2.postimg.org/sg9n2li8p/image.png
(the image is quite large so I posted it on upload)
Log:
http://pastebin.com/VMYSwbBS
Is there anyone who has managed to fix this issue?
Thanks for answering!
--------EDIT--------
I'm now trying to launch the game in Java 8 (although I don't know if it is supported though)
Still experiencing the error.
-----SOLUTION-----
Someone at the Razer forums found the awnser, Razer Synaps 2.0 the program used by Razer for your mouse/keyboard is constantly setting this variable (a really poor programming practise) however it won't show up in the files, Close the program and it worked for me (un-installing in or stop it from running will at start-up will solve the issue)