I am facing this problem since more than a month, here is what I see when I run java on command line:
$ java -Xmx1300m Error occurred during initialization
Anyway, here is how to fix it:
Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System Variables->New:
Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M
taken from this link