Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is org.apache.derby.jdbc.ClientDriver for version 10.15.1.3?

Tags:

jdbc

derby

I've downloaded the drivers via Maven Central (org.apache.derby).

  1. derby-10.15.1.3.jar
  2. derbyclient-10.15.1.3.jar
  3. derbynet-10.15.1.3.jar
  4. derbyshared-10.15.1.3.jar

So what am I missing ? None of these JARs contains the package "org.apache.derby.jdbc", which used to contain the ClientDriver and EmbeddedDriver in the past?

like image 486
Per Digre Avatar asked Dec 31 '22 18:12

Per Digre


1 Answers

Indeed, to use the Derby client driver with Derby 10.15, you now need all three of: derbyclient.jar, derbyshared.jar, and derbytools.jar. This is (weakly) documented here:

A new jar file (derbyshared.jar) has been added. All Derby configurations require it. In addition, the derbytools.jar library is now required when running the network server and/or when using Derby DataSources.

Since you are running the network server, you now require derbytools.jar (as well as the new derbyshared.jar when running the client software.

I think it would be worth suggesting to the Derby community that the release note could make this stand out more clearly (you could file an improvement request with the Derby project, e.g.)

like image 127
Bryan Pendleton Avatar answered Jan 05 '23 18:01

Bryan Pendleton