ClassNotFoundException when connecting to MS SQLServer using JDBC

前端 未结 3 2014
闹比i
闹比i 2021-01-19 11:20

I\'m trying to connect to a MSSQL using the MS JDBC Driver (Microsoft SQL Server JDBC Driver 3.0: http://www.microsoft.com/download/en/details.aspx?id=21599) but what every

相关标签:
3条回答
  • 2021-01-19 11:42

    You might have the package for the SQLServerDriver class incorrect. Try "com.microsoft.sqlserver.jdbc.SQLServerDriver" instead of "com.microsoft.jdbc.sqlserver.SQLServerDriver".

    0 讨论(0)
  • 2021-01-19 11:43

    I your project tree listing pane, under libraries see if the JDBC package is listed if not right click on the library node -> Add JAR/Folder. Then browse the right package from your computer and import it. I think this should solve the problem.

    And as you asked this link might be helpful Creating a Simple Application Using MYSQL DB

    0 讨论(0)
  • 2021-01-19 11:45

    In NETBEANS add path in the Project properties -> libraries -> compile tab screen image -> [http://i.stack.imgur.com/g6BH3.jpg]

    0 讨论(0)
提交回复
热议问题