I am currently making a small java application to do some CRUD on an access database. At tafe they run 32-bit machines so it works there, but at home i run 64-bit so i did some research and found out about the odbcad32.exe in SysWOW64. So i made the data source there and J Creator still has an error that says The specified DSN contains an architecture mismatch between the Driver and Application. So im now thinking that even though the dsn is in the 32-bit version, J Creator is still looking in the 64-bit version.
here is the .properties file that the ap loads.
driver = sun.jdbc.odbc.JdbcOdbcDriver
url = jdbc:odbc:booksDSN_32;database=booksdb.mdb
username = user
password = password
connections=1
I thought maybe the url needs to be different so i changed it to
url = jdbc:odbcad32:booksDSN_32;database=booksdb.mdb
no luck with that. i’m sure its something small im missing here
Thank you for any help you can provide!
Are you using 32-bit or 64-bit Java?
In other words, on your 64-bit machine, is Java running from somewhere under
C:\Program Files\JavaorC:\Program Files (x86)\Java?I’ve had a couple of issues in the past with using 32-bit DLLs with Java on 64-bit machines. The fix in both cases was to use 32-bit Java.