Java DB drivers are not referencing correct Derby classes
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 17
### What happened
The default Java DB drivers shown under NetBeans Services window point to incorrect/outdated Derby classes resulting in ClassNotFound exceptions when attempting to use them. The correct classes are:
`org.apache.derby.jdbc.EmbeddedDriver` - for Java DB (Embedded) located in derbytools.jar
`org.apache.derby.client.ClientAutoloadedDriver` - for Java DB (Network) located in derbyclient.jar
Additionally, even after the drivers are updated to point to these new classes, attempting to create a new database results in a ClassNotFound exception for `org.apache.derby.jdbc.ClientDriver`. It doesn't appear to be using the modified driver settings. Even the "sample" database throws a "The Java DB (Network) driver was not found" error upon connect which doesn't make sense since that driver exists.
### How to reproduce
Install the default Derby DB in NetBeans 17 and attempt to use the provided Java DB drivers or connect to the "sample" database.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 11
### JDK
Microsoft build of OpenJDK with Hotspot 17.0.6+10 (x64)
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
Yes
Contributor guide
Research direction
Start in the NetBeans Services window with the default Derby Java DB drivers and reproduce the failure using the Java DB (Embedded), Java DB (Network), and sample database connections. Verify that the configured Derby classes resolve from derbytools.jar and derbyclient.jar, and that creating and connecting to a database no longer raises ClassNotFound exceptions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100