ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver

前端 未结 3 540
野的像风
野的像风 2021-01-18 09:50

I have java code which connects to a MS-SQL database and procures some data.

Before running the code I set the class path in the Unix Server and it used to work fine

3条回答
  •  难免孤独
    2021-01-18 10:41

    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..:)

提交回复
热议问题