mysql-connector-java 5.1.13,無法找到文件mysql-connector-java-5.1.13-bin.jar

在尝试运行NetBeans中的DVDStoreEE6 JavaEE示例时遇到错误,提示找不到mysql-connector-java-5.1.13-bin.jar。解决方案包括下载该JAR文件并设置类路径,或者检查项目配置中是否已包含正确的MySQL连接器,并根据输出窗口的提示进行相应调整。
摘要由CSDN通过智能技术生成

當我嘗試運行netbeans站點https://netbeans.org/projects/samples/downloads/download/samples/javaee/dvdstoree6.zip時,我嘗試運行sakila數據庫示例。

i have some problem showing following in my n output windows of NetBeans 7.3.Beta2

我在NetBeans的n個輸出窗口中顯示了一些問題。

ant -f "C:\\Users\\unknown\\Documents\\DVDStoreEE6 (1)"

-DforceRedeploy=false -Ddirectory.deployment.supported=true -Dnb.wait.for.caches=true run init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: C:\Users\unknown\Documents\DVDStoreEE6 (1)\nbproject\build-impl.xml:995: Warning: Could not find file C:\Applications\NetBeans\NetBeans Dev

201107270600.app\Contents\Resources\NetBeans\ide\modules\ext\mysql-connector-java-5.1.13-bin.jar to copy. BUILD FAILED (total time: 0 seconds)

Can any one guide me why this problem is occurring?

有誰能告訴我為什么這個問題會發生?

2 个解决方案

#1

1

You need to download mysql-connector-java-5.1.13-bin.jar and then set your classpath. here the link to download

您需要下載mysql-connector-java-5.1.13-bin。jar,然后設置類路徑。這里是下載鏈接。

#2

0

In case if you have already included the 'mysql-connector-java' jar file and are still facing the same error like me, here is what you can do. When the error is displayed in the output window click on the blue link that is displayed. Eg:

如果您已經包含了“mysql-connector-java”jar文件,並且仍然面臨着與我相同的錯誤,下面是您可以做的事情。當輸出窗口中顯示錯誤時,單擊顯示的藍色鏈接。例如:

C:\Users\Username\NetbeansProjects\ProjectName\nbproject\build-impl.xml

Within that remove the below line,

在此刪除下面一行,

Hope this helps.

希望這個有幫助。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值