找不到文件 mysql-connector-java-5.1.13-bin.jar

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20832271/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 04:39:42  来源:igfitidea点击:

Could not find file mysql-connector-java-5.1.13-bin.jar

javamysqlhibernatejdbc

提问by Kishor Joshi

Hi when i try to run sakila database example from netbeans site https://netbeans.org/projects/samples/downloads/download/Samples/JavaEE/DVDStoreEE6.zip

嗨,当我尝试从 netbeans 站点运行 sakila 数据库示例时 https://netbeans.org/projects/samples/downloads/download/Samples/JavaEE/DVDStoreEE6.zip

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

我在 NetBeans 7.3.Beta2 的 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?

任何人都可以指导我为什么会出现这个问题?

采纳答案by Ashish

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

您需要下载mysql-connector-java-5.1.13-bin.jar,然后设置您的类路径。这里是下载链接

回答by Saumil

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,

在那个删除下面的行中,

<copyfiles files="${file.reference.org-netbeans-modules-db-mysql.jar}" todir="${build.web.dir}/WEB-INF/lib"/>

Hope this helps.

希望这可以帮助。