I originally posted this on stackoverflow, but they sent me here, so apologies for the copy-paste.
When I'm running the arduino IDE, it crashes, saying that "java could not create a virtual machine". When I run the debug app it says "Invalid maximum heap size: -Xmx5G". From what I found online, this is because the Arduino IDE uses 32bit java. I have not found a solution online. I also would like to not change the heap size in _JAVA_OPTIONS if possible.