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!

asked 17 Aug '12, 08:02

JaviMetal750's gravatar image

JaviMetal750
76127
accept rate: 100%

edited 17 Aug '12, 09:32

Mark%20Culp's gravatar image

Mark Culp
23.0k9129270


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!

permanent link

answered 17 Aug '12, 08:22

JaviMetal750's gravatar image

JaviMetal750
76127
accept rate: 100%

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:)

(17 Aug '12, 10:17) Volker Barth
1

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?

(19 Aug '12, 23:08) Jonathan Baker
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:

×67
×64
×40

question asked: 17 Aug '12, 08:02

question was seen: 950 times

last updated: 19 Aug '12, 23:08