cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC UnsatisfiedLinkError Windows XP & Eclipse

Former Member
2,201

Hi! I'm a rookie with SQL Anywhere and I need help (please) with an error I just got. I'm trying to create a connection from Java (using Eclipse on Windows XP) to my SQL Anywhere 11.0.1 database following the steps depicted here (option 5) but I get this error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: sybase.jdbc.sqlanywhere.IDriver.initEnv()V

when the line

DriverManager.registerDriver(
      (Driver) Class.forName( "sybase.jdbc.sqlanywhere.IDriver" ).newInstance() );

is executed. Can some kind soul give me a hand? Thank you very much!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Well, forget my stupid question. I did not launch the server, so the connection was impossible to be performed.

At least some other rookie will know that if you try to connect to a database not started you will get that error.

Best regards!

VolkerBarth
Contributor
0 Kudos

Welcome to this forum!

And look: For answering your own - not stupid at all! - question you immediately are awarded with the "Enlightened" badge... a good start for a so-called rookie, methinks:)

Former Member

It seems like you received the wrong exception for that to be the problem. If you had not started your server, you should have seen a SQLException about it. Instead, you have an UnsatisifiedLinkError. Is it possible you changed your library path too?

Answers (0)