install java again, and if your problem keeps coming up, don't just go to java.com and click down
Load, because sometimes it will give you a 32bit java when you need 64, Solution 2 is to delete,the file called bin and resources,in .minecraft and reload the game.