Flex SDK 4.5.1 does not run on 64bit JRE

To use Flex SDK 4.5.1 on Windows Vista 64bit, you need 32bit JRE.
The directory where JRE sits should be pointed by the environment variable JAVA_HOME. 64bit one does not seem to work for the purpose.