无法通过NetBeans 11 IDE访问Derby数据库(“找不到合适的驱动程序”)

问题描述 投票:0回答:1

我已经安装了NetBeans 11并安装了Derby。我已经配置了Derby,并在“服务”选项卡中启动了JavaDB服务器。 IDE报告

  Wed Apr 17 17:26:43 EEST 2019 : Security manager installed using the 
  Basic server security policy.
  Wed Apr 17 17:26:44 EEST 2019 : Apache Derby Network Server - 10.15.1.3 
  - (1853019) started and ready to accept connections on port 1527

创建示例数据库也可以。但是然后...我找不到连接到数据库via IDE的方法。它应该像单击几次一样简单(并且一直如此)。 (注意:我可以在代码中执行此操作。)这是错误消息

  Unable to connect. Cannot establish a connection to 
  jdbc:derby://localhost:1527/sample using 
  org.apache.derby.jdbc.ClientDriver (Unable to find a suitable driver).

URL很好,所以这似乎是驱动程序问题。但是,问题出在Netbeans IDE中。有什么建议吗?

重新安装NetBeans不能解决问题。

jdbc netbeans derby netbeans-11
1个回答
0
投票

将derbyshared.jar和derbytools.jar添加到“ Java DB(嵌入式)”和“ Java DB(网络)”的JDBC驱动程序定义中,并且可以使用。您可以在$ DERBY_HOME / lib目录中找到它们。

有关更多信息,请参见https://issues.apache.org/jira/browse/NETBEANS-3424?focusedCommentId=17118150&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17118150

© www.soinside.com 2019 - 2024. All rights reserved.