Recently, i've been trying to set up forge on java minecraft. However, a problem popped up where, after installing java, I would get this message upon attempting to open the forge installer: Error: could not create the Java Virtual Machine.
So, naturally, I googled the problem to see what I could do. After spending hours trying to fix this issue, and attempting seemingly every "solution", I felt exhausted. I would uninstall java, and reinstall it, even receiving the error during installation. I even tried different java versions.
Eventually, I decided to try and install forge without java, so I opened up the cmd prompt, and found this message.
Picked up _JAVA_OPTIONS: ûXmx512M Unrecognized option: ûXmx512M Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
I toyed around with sysdm, because someone said that was where the _JAVA_OPTIONS issue lied, but it wasnt. The only java options that was there was the one I created, with 1024M instead of 512M. Even when I deleted it, the error remained the same. What do I do?
EDIT: it seems like nobody has both the virtual machine error and the java options error at the same time. how did i manage this