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

谁说我不能喝 提交于 2020-04-05 06:42:10

问题


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?


回答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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!