Error in Class not found

When i try to connect SQl 2000 database using JDBC, it gives an error indicating "java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver"

I alredy set the CLASSPATH correctly & my JDBC driver also installed into my computer.

Pls any1 who can help me to solve this...........

Thankz

[334 byte] By [Sana_Boya] at [2007-11-27 6:27:26]
# 1
> I alredy set the CLASSPATH correctlyIf you're getting that error, then no, you haven't set your classpath correctly by definition.
dcmintera at 2007-7-12 17:49:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
How can i check that i set CLASSPATH correctly.
Sana_Boya at 2007-7-12 17:49:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3

If you run the program and it doesn't give you a ClassNotFound or NoClassDefFound exception then you've got the classpath set right.

The trick is knowing what it should be set to. For JAR files, your classpath must include the JAR file itself, not the directory containing the JAR file.

Depending upon how you're running the application the classpath may be provided on the command line, set as an environment variable, or placed in a configuration file. Without knowing more about your application it's impossible to advise you further.

dcmintera at 2007-7-12 17:49:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4
hi,can u try out this..com.microsoft.sqlserver.jdbc.SQLServerDriver
hetal_giria at 2007-7-12 17:49:18 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...