Previously it was receiving the error Java VM error. Tried the suggestion with the memory and it didn't work. So, I uninstalled and reinstalled Java. Now, I am getting the error message: Cannot locate JRE 1.7 registry Info.
This is probably caused by the residues from the old Java installation. I recommend using CCLeaner to properly clean and remove the registry entries then you can proceed to a full installation of Java.
Download and install the application, then go to Registry and delete all the found registry entries. They're most likely to be obsolete. Reboot the PC, and then install Java again.