ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver

前端 未结 3 549
野的像风
野的像风 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:52

    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.

提交回复
热议问题