Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception:[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch

 
James E Baker
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched the JDBC forum & Google and found a few discussions but nothing that solved my issues.

WHAT I'M TRYING TO DO
I am trying to access a Microsoft Access database file. My code seems to be sound but I am getting the "architecture mismatch" error shown in the subject line.

WHAT I'M USING
Access file in .mdb format (32-bit), Eclipse (64-bit) and Windows 7 (64-bit)

THE DRIVER
I loaded the driver using C:\Windows\SysWOW64\odbcad32.exe and selected Micosoft Access Driver (*.mdb).

MY CODE
I don't think it has anything to do with the code because it's an architecture mismatch but I'll post it anyway if you're curious. I'll leave out the non-related code and catch statements...

... and main()

So, I am stumped! I cannot figure out why I'm getting this error.

Thanks for looking... James
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic