问题
I've downloaded the drivers via Maven Central (org.apache.derby).
- derby-10.15.1.3.jar
- derbyclient-10.15.1.3.jar
- derbynet-10.15.1.3.jar
- 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?
回答1:
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.)
来源:https://stackoverflow.com/questions/57216394/where-is-org-apache-derby-jdbc-clientdriver-for-version-10-15-1-3