If you are receiving this error, then it means you have a 64-bit component somewhere in your application stack. I recently got this error when trying to connect to an Access Database from a Java application on Win 7 X64. The fix for me was to uninstall
all 64 bit versions of of the Java JREs that I had on my system. Even though I had specified a 32-bit JRE and disabled the 64 bit JREs through the Java console and specified a 32 bit version for my PATH environment variable, it was still defaulting to a 64-bit
Hotspot Java Virtual Machine. I don't if that is a JRE bug, or if I was missing a configuration somewhere. Verify the following commands from the command line:
java -version
javac -version
echo %PATH%
echo %CLASSPATH%
My guess is that if you run java -version, you will not get the following:
Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing)
You will instead get something similar but that says 64 bit rather than mixed mode. That is probably your issue.
Also verify your ODBC settings are configured correctly
If you're trying to run this from an IDE such as Eclipse, you will also need to verify settings specific to your IDE.
This is not a Microsoft issue. I can confirm the 32 bit driver works for connecting from 32 bit Java applications on Windows 7 x64, Win XP x64, and Server 2012.