I am running a program on Intellij and my project SDK is currently set to version 1.7.
I tried to change the VM options
to a -Xmx10g
and
it throws an error claiming Invalid Heap Space, JVM could not create
So I tried changing the JDK to version 1.8 which is the latest and it doesn't throw any error at all and works fine.
Does anyone know why?