Greetings.

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

http://bit.ly/124w1o4

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.

asked 28 Jun '13, 10:47

David%20Lopez's gravatar image

David Lopez
46335
accept rate: 0%

edited 28 Jun '13, 11:12

Mark%20Culp's gravatar image

Mark Culp
23.3k9132275


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

permanent link

answered 28 Jun '13, 11:12

Mark%20Culp's gravatar image

Mark Culp
23.3k9132275
accept rate: 40%

edited 28 Jun '13, 11:26

2

You can also test to see which version you have of each file at the command-line:

java -cp jodbc.jar ianywhere.ml.jdbcodbc.jdbc3.IBuildNum
10.0.1.4310

And if you have sigcheck installed, you can check the DLL version.

sigcheck -q -n dbjodbc10.dll
10.0.1.4310 (64-bit)

(Alternatively, Right-click the dbjodbc10.dll in Windows Explorer, Properties, Details).

(28 Jun '13, 11:54) Jeff Albion
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×131
×114
×67
×65
×18

question asked: 28 Jun '13, 10:47

question was seen: 1,787 times

last updated: 28 Jun '13, 11:55