Skip to Content.
Sympa Menu

freetds - java.lang.ClassNotFoundException: com.internetcds.jdbc.tds.Driver

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Tariq" <thussa AT star-fire.demon.co.uk>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: java.lang.ClassNotFoundException: com.internetcds.jdbc.tds.Driver
  • Date: Tue, 5 Nov 2002 13:00:09 -0500


Hello,

I'm new to TDS, and I'm trying to learn JDBC. I'm running TDS on a Linux
machine, the database is Sybase on a Solaris box. The tsql -S servername
-U userid -P password seems to work fine.

The make check runs all 21 tests successfully.

When I compile a *.java file it compiles succesfully. When I run it using
java program I get:

java.lang.ClassNotFoundException: com.internetcds.jdbc.tds.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:196)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:185)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:279)
at java.lang.ClassLoader.loadClass(ClassLoader.java:249)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:308)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:117)
at jdbctest.ftdsjdbc(jdbctest.java:19)
at jdbctest.main(jdbctest.java:59)

Is there some way to get the sample program program I got from the TDS
documentation to find the JDBC API ?

All help appreciated. Thanks in advance.

Regards
Tariq




Archive powered by MHonArc 2.6.24.

Top of Page