on 2012 Aug 17 9:02 AM
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!
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
User | Count |
---|---|
75 | |
9 | |
9 | |
8 | |
8 | |
7 | |
7 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.