Class [org.apache.derby.jdbc.ClientDriver] not found. When trying to connect to db

后端 未结 1 1299
一整个雨季
一整个雨季 2020-12-10 07:14

I have set up a project in Netbeans, created a script, made a new database with javadb. I can connect to it by gui - display the tables contents etc, but when i run an appli

相关标签:
1条回答
  • 2020-12-10 07:39

    I think the problem you have is that you don't have the Derby driver in the classpath of the project.

    You can easily achieve that adding the JavaDB library to your project:

    • Right-click on the project
    • Properties -> Libraries
    • Add Library -> JavaDB driver

    This includes derby.jar, derbyclient.jar and derbynet.jar in your project's classpath.

    The derbyclient.jar contains the class org.apache.derby.jdbc.ClientDriver your code is complaining about.

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