1. The error "Java. Lang. classnotfoundexception: COM. Microsoft. JDBC. sqlserver. sqlserverdriver" is displayed:
The final cause may be as follows:
1. SQL Server 2000 driver for JDBC is not installed
2. Pay attention to you after installationProgramWhether the package of the class has imported three files under the Lib file after the SQL Server 2000 driver for JDBC program is installed:
C:/program files/Microsoft SQL Server 2000 driver for JDBC/libmsbase. 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
Package resource manager --> package name right-click "build path" --> Configure build path --> JAVA build path --> library --> Add external jar
Select the Three jar files.
3.0 another point in SQL Server 2008 is that the database driver cannot be found because Microsoft's requirements for connection strings have changed.