Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot import jdbc driver -- answered

 
Rob Brew
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EDIT: Answer was to use the line:


Hi all.

I've been at this for hours with no joy, I'm trying to use the jConnect library from SAP for a system running SQL Anywhere. The code cannot find the drivers even though i've imported the jconn4.jar into NetBeans.
I've also tried the open source driver.

here's the stack trace:


and here's my hibernate.cfg.xml file:


any ideas greatly appreciated.

Rob Brew.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that the class name you are using for the JDBC driver is correct? If I look at this page in the documentation, it says that the class name should be:

com.sybase.jdbc4.jdbc.SybDriver

That's slightly different that what you're using. It might be different with different versions. Make sure you're using the right settings for the version of the driver that you're using.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic