Zend certified PHP/Magento developer

“Could not create the Java Virtual Machine” error *during* Java installation

So I was having a bit of trouble with Minecraft demanding I install 64 bit Java (I already had 64 bit) and so I decided to reinstall Java. I uninstalled my old Java, downloaded the off-line installer and I get an error along the lines of “Could not creat the Java Virtual Machine; A fatal exception has occured. Program will exit” near the end of the installation. I have tried reinstalling it many times, with different installers, changing the environment variables did not work, neither did manually deleting the files from the program files folder and then trying. Restarting also did not work. I need Java as I require PyCharm, and PyCharm requires Java.