Java error when starting?

Ea
- in Plugins
3

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?

Sh

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.

Ea

Thank you, I'll try that out right away!

Ea

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

Script Error Message? Sh Shockbakery71
What do I do now? Or Orangetidy