Please be aware that the SAP SQL Anywhere Forum will be shut down on August 29th, 2024 when all it's content will be migrated to the SAP Community.

when executing the IsqlApp class I'm having a ClassNotFoundException. According to me the file should not be looking for that driver but the one in the jconn4.jar (I installed Jconnect7)

How can I solve this problem?

Unexpected exception : java.lang.ClassNotFoundException: com.sybase.jdbc.SybDriv
java.lang.ClassNotFoundException: com.sybase.jdbc.SybDriver
        at$ Source)
        at$ Source)
        at Method)
        at Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at IsqlApp.doIsql(
        at IsqlApp.main(

asked 17 Jul '12, 05:39

michaelvanwyngaerden's gravatar image

accept rate: 0%

edited 17 Jul '12, 08:09

Breck%20Carter's gravatar image

Breck Carter

You have the wrong classname being loaded by your JDBC code for jConnect 7.0.


The jConnect JDBC driver

The classes in jConnect are all in com.sybase.jdbc4.jdbc. You must import these classes at the beginning of each source file:

import com.sybase.jdbc4.jdbc.*

Loading the jConnect driver

Ensure that the jConnect driver is in your class file path. The driver file jconn4.jar is located in the classes subdirectory of your jConnect installation.

set classpath=.;c:\jConnect-7_0\classes\jconn4.jar;%classpath%

The jConnect driver takes advantage of the new automatic JDBC driver registration. The driver is automatically loaded at execution startup when it is in the class file path.

If you are using JDBC 4.0, you should note that you no longer are required to call DriverManager.registerDriver() and this is taken care of for you instead.

permanent link

answered 18 Jul '12, 15:13

Jeff%20Albion's gravatar image

Jeff Albion
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: 17 Jul '12, 05:39

question was seen: 3,609 times

last updated: 18 Jul '12, 15:13