I just had this exact same issue. I have an application that requires the 32bit version of Java; however, I obviously want to use the 64 bit version for FTB. The 32 bit version was being used by default.
I found the correct registry entry to modify here...