1

I am pretty new to Java DB, and I'm trying to set up Java DB in NetBeans IDE using this tutorial: Working with the Java DB (Derby) Database

During the step, where it tells to create database, I get such an error:

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

How do I fix this issue?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131

2 Answers2

1

Which version of Derby / Java DB are you using?

If it is 10.15.1.3, see this response: Where is org.apache.derby.jdbc.ClientDriver for version 10.15.1.3?

Within NetBeans, there seems to be the same issue with ClientDriver. As a workaround, download and use Derby 10.14.2.0 instead. A NetBeans bug report, Apache Jira Netbeans-3424 has been submitted.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Brooksie
  • 361
  • 2
  • 5
1

I found it in lib\derbytools.jar\org\apache\derby\jdbc.

I copied the entire jdbc folder and pasted in lib\derbyclient.jar\org\apache\derby

Then it works.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131