The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

Why am I seeing this error?

I was seeing the same “build does not match” error on a different Java/SQL Anywhere application using a recent build of SQL Anywhere, so tried the demo below and got the same result. I uninstalled SQL Anywhere and re-installed (which is an install I had lying around) and still see the error.

c:\Users\Public\Documents\SQL Anywhere 16\Samples\SQLAnywhere\JDBC>which javac
c:\program files\java\jdk1.7.0_25\bin\javac.exe
c:\Users\Public\Documents\SQL Anywhere 16\Samples\SQLAnywhere\JDBC>dbsrv16 ..\..\demo.db
c:\Users\Public\Documents\SQL Anywhere 16\Samples\SQLAnywhere\JDBC>set classpath=.;%SQLANY16%\java\sajdbc4.jar
c:\Users\Public\Documents\SQL Anywhere 16\Samples\SQLAnywhere\JDBC>javac
c:\Users\Public\Documents\SQL Anywhere 16\Samples\SQLAnywhere\JDBC>java JDBCConnect
**Unexpected exception : java.sql.SQLException: The sajdbc.jar build does not match the shared object build, sqlstate = null**
c:\Users\Public\Documents\SQL Anywhere 16\Samples\SQLAnywhere\JDBC>dbeng16 -v
[dialog shows]

asked 23 Feb '14, 20:37

Tom%20Slee's gravatar image

Tom Slee
accept rate: 25%

The error is a result of having a dbjdbc16.dll which does not match the build of the jar file in my path ahead of that from the SQL Anywhere install; in my case, from an IQ install.

Fixed by

set path=%SQLANY16%\bin64;%PATH%
permanent link

answered 23 Feb '14, 20:39

Tom%20Slee's gravatar image

Tom Slee
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 23 Feb '14, 20:37

question was seen: 1,379 times

last updated: 23 Feb '14, 22:41