1

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?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
  • 2
    what Java version are you using? some drivers seems to be compiled against java 9, have you tried another prior Derby version? – Kaneda Apr 02 '21 at 03:03
  • 1
    you can also add the driver via right clicking in libraries and choose add java db driver from the list. – Kaneda Apr 02 '21 at 03:05
  • i am using JDK-15 –  Apr 02 '21 at 03:05
  • but I do not want to add insight to the project I need to add a database through Netbeans service –  Apr 02 '21 at 03:12

3 Answers3

1

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.

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

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Kaneda
  • 722
  • 5
  • 16
0

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

Safin Ghoghabori
  • 516
  • 1
  • 6
  • 17