java.lang.ClassNotFoundException:org.microsoft.sqlserver.jdbc.SQLServerDriver虽然添加了jar

时间:2014-09-15 16:47:37

标签: java jdbc

虽然我已将jar添加到我的类路径中,但我收到以下错误。

错误:

java.lang.ClassNotFoundException: org.microsoft.sqlserver.jdbc.SQLServerDriver
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at com.Class.Class19.getConnection(Class19.java:19)
 at com.Class.Class19.main(Class19.java:11)

我试过将sqlserverjdbc.jar和sqlserverjdbc4.jar添加到类路径

0 个答案:

没有答案