Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Classpath
Message
From
30/06/2003 09:54:47
David Brunelle
Université de Sherbrooke
Sherbrooke, Quebec, Canada
 
 
To
All
General information
Forum:
Java
Category:
Databases
Title:
Classpath
Miscellaneous
Thread ID:
00805288
Message ID:
00805288
Views:
54
This question probably was asked quite a lot of times, but anyway.

In order to use a JDBC driver (the SQL server2000 one to be more specific), I need to set the "classpath" to

".;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" (these are the three files that I need and are found exactly in this place).

However, when I try the statement

"Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");"

I get the ClassNotFoundException error message.

I was told to put the statement in the control panel/system/advanced/environment variables. Is there something that I am not doing right? I reboot after puting it there and it didn't work after that either. I am using Windows 2000(both pro and server as I program in my computer then put the whole thing in the server).
Reply
Map
View

Click here to load this message in the networking platform