Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

Solution
Uninstall all Java versions, reboot, download and install the version you need or the latest one if you don't know if you need a specific version.