ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver

空扰寡人 提交于 2019-12-01 18:53:47

The issue of java.lang.ClassNotFoundException might be the outcome of several reasons:

  • Jar file is not available in class path. (This is not your case. as you have mentioned).

  • Your jar file is corrupted.

  • Your environment variable value is not accessible by current user. (Permission revoked by administrator).

  • Current user don't have permission to read jar file.

Please verify the last three options.

Right button on project-> Properties - > Java built Path -> Order and Export -> And check checkBox with you jar.

If you connect on Android project to Use 1.2.7 version.

I know it's late, but for others facing the same problem..

If you are using eclipse:
1. Go to Project -> Properties -> Java Build Path -> Order and export.. and check the jar file for jtds.version.jar
2. Go to Run Configurations and add this jar file to the user defined jars.

Hope this helps..:)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!