I was playing on a local server with 3 friends last night and everything was working fine, but today when I tried to play I got this:
Error: could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I looked on google how to "fix it" on panel control > environment variations and blahblah something about creating a _JAVA_OPTIONS
but when I did this and tried to play I got this message:
Error occurred during initialization of VM.
Could not reserve enough space for object heap using -Xmx512M
I tried maybe changing it from 512M to 1028M (Some weird guess I got because I use OptiFine for Minecraft) but it did not worked either, I still got the 512M error message.
I tried basically everything that I could thought. I updated Java, I downgraded Java, I deleted the old updates, I deleted Java completely and reinstalled it but I just fucked everything even more so I gave up and I restored my system to two days ago and tried to extract and open Minecraft again but it did not worked. I saw the "MINECRAFT" letters on my screen for like half second and then they dissapeared and the game did not started. Now, I don't know what's wrong and the game is not opening, I can't play.
Anyone has any idea of why and how can I fix it? Thanks in advance.