user9652589
user9652589

Reputation:

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?

Upvotes: 1

Views: 8228

Answers (3)

user9652589
user9652589

Reputation:

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.

Upvotes: 1

Kaneda
Kaneda

Reputation: 721

Accordingly with the Derby release notes, I think you are missing the Derby tools

In addition, the derbytools.jar library is now required when running the network server and/or when using Derby DataSources.

Upvotes: 0

Safin Ghoghabori
Safin Ghoghabori

Reputation: 646

Don't download the 10.15.2.0 version

Just download from the below, and it will work fine:

https://db.apache.org/derby/releases/release-10_14_2_0.cgi

Upvotes: 0

Related Questions