Just remove both versions and install a fresh 64 bit java from java.com.
Oh and just fyi, this has probably nothing to do with Windows 8. My Windows 8 is running fine with the FTB modpacks. You may hate that OS sure, but using personal opinions as a title of your support thread isn't really...