gpt4 book ai didi

mysql - 构建失败 : unable to find ojdbc . jar 文件

转载 作者:行者123 更新时间:2023-11-29 01:41:09 26 4
gpt4 key购买 nike

当我运行项目时出现错误:

C:\Users\admin\Documents\NetBeansProjects\project\nbproject\build-impl.xml:1007: Warning: Could not find file C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar to copy. BUILD FAILED (total time: 0 seconds)

以前我使用的数据库是 Oracle,但现在我想使用 Mysql Server。我已经相应地更改了代码,还将 mysql 连接器放入库中。我卡在哪儿了?为什么使用mysql服务器还是报oracle驱动错误?

附言使用的服务器:Apache Tomcat 7.0Netbeans 版本:7.4

最佳答案

您可能仍然在 Netbeans 的构建脚本中引用了旧 jar。右键单击您的项目,选择“属性”,然后在“构建”部分下查看对旧 jar 的任何引用。

您也可以手动编辑 ant 构建脚本。文件路径在您提供的错误消息中给出。

关于mysql - 构建失败 : unable to find ojdbc . jar 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21664558/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com