I am using NetBeans to develop a Java Application, and right now I am trying to connect to SQL Anywhere 10 via JDBC. I have included jodbc.jar in my class path and done what it was supposed to in order to do well... but still having the same SQLException:
java.sql.SQLException: The jodbc.jar build does not match the shared object build
Above there is a screenshot, with the packet included in the class path on the left, the code with the problematic 327 line on the right and the log below. user1 and password1 are simply Strings containing these data regarding the user to connect.
Any ideas about how to make it up?
Thanks so much in advance.
The error that you are getting indicates that the version of the jar file (jodbc.jar) does not match the version of the shared object (DLL/SO) that is being loaded by the jar file. i.e. dbjodbc10.dll.
Make sure that you have matching versions of these two files in your CLASSPATH and PATH respectively.
Also see this post