Search code examples
javanetbeansderby

An error occurred while creating the database: java.lang.ClassNotFoundException: org.apache.derby.jdbc.ClientDriver


I am trying to create a new JavaDB. I have added the Java DB Drivers into Libraries, but it's still throwing out an error when creating a new Database under services.

I downloaded and defined db-derby-10.15.2.0-bin

Enter image description here

And I defined the driver files here:

Enter image description here

I clicked create database here:

Enter image description here

And filled in this form:

Enter image description here

After I clicked on it, it shows like this:

Enter image description here

How can I fix this?


Solution

  • Finally, I solved this problem.

    I don't know why it's not working. But I changed Derby version 10.15 to 10.2, and now its working.