Home > Archive > SQL Server JDBC > March 2006 > java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
gonsalvesc@gmail.com

2006-03-09, 8:23 pm

I have installed the MS SQL 2000 JDBC driver from microsoft's website.
My path settings are:
C:\Program Files\Microsoft SQL Server 2000 Driver for
JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver
for JDBC\lib\msutil.jar;C:\Program Files\Microsoft SQL Server 2000
Driver for JDBC\lib\mssqlserver
.jar

But it still gives me the error
java.lang. ClassNotFoundExcepti
on:
com.microsoft.jdbc.sqlserver.SQLServerDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader. findClass(URLClassLo
ader.java:188)
at java.lang.ClassLoader. loadClass(ClassLoade
r.java:306)
at
sun.misc. Launcher$AppClassLoa
der.loadClass(Launcher.java:268)
at java.lang.ClassLoader. loadClass(ClassLoade
r.java:251)
at
java.lang.ClassLoader. loadClassInternal(Cl
assLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at Connect. getConnection(Connec
t.java:24)
at Connect. displayDbProperties(
Connect.java:42)
at Connect.main(Connect.java:78)

Are there any steps I should follow to install the drivers? The code
I'm using is exactly off the micrsoft website:
http://support.microsoft.com/defaul...kb;en-us;313100

Thanks!

David Thielen

2006-03-11, 3:23 am

You need to add these to your classpath. Having them in your path does
nothing.

thanks - dave

On 9 Mar 2006 15:20:19 -0800, gonsalvesc@gmail.com wrote:

>I have installed the MS SQL 2000 JDBC driver from microsoft's website.
>My path settings are:
>C:\Program Files\Microsoft SQL Server 2000 Driver for
>JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver
>for JDBC\lib\msutil.jar;C:\Program Files\Microsoft SQL Server 2000
>Driver for JDBC\lib\mssqlserver
.jar
>
>But it still gives me the error
>java.lang. ClassNotFoundExcepti
on:
>com.microsoft.jdbc.sqlserver.SQLServerDriver
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader. findClass(URLClassLo
ader.java:188)
> at java.lang.ClassLoader. loadClass(ClassLoade
r.java:306)
> at
>sun.misc. Launcher$AppClassLoa
der.loadClass(Launcher.java:268)
> at java.lang.ClassLoader. loadClass(ClassLoade
r.java:251)
> at
>java.lang.ClassLoader. loadClassInternal(Cl
assLoader.java:319)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:164)
> at Connect. getConnection(Connec
t.java:24)
> at Connect. displayDbProperties(
Connect.java:42)
> at Connect.main(Connect.java:78)
>
>Are there any steps I should follow to install the drivers? The code
>I'm using is exactly off the micrsoft website:
>http://support.microsoft.com/defaul...kb;en-us;313100
>
>Thanks!



david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com