I like to program and many Minecraft plugins with Java. So far, everything has worked, but when I launch Java the error comes: Could not Create Virtual Machine!
If I search for the current Java version in the CMD, this comes out: Picked up _JAVA_OPTIONS: -Xmx5096M
Invalid maximum heap size: -Xmx5096M
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program wants to exit.
What should I do now or how can I fix it?
You seem to be using a 32bit version of Java. This can have a maximum of 2Gb heap. So either take a maximum of 2Gb or install a 64-bit version or make the default.
Thank you, I'll try that out right away!
Excellent! That worked! Thank you, it was a bit to and fro because I had to reinstall Eclipse and reinstall Java, and had to rebuild my workspace, but now it works