简体   繁体   English

找不到源JAR文件mysql-connector-java-5.1.20-bin.jar没有源附件

[英]Source not found The JAR file mysql-connector-java-5.1.20-bin.jar has no source attachement

I have a Java program connected with MySQL database. 我有一个与MySQL数据库连接的Java程序。 I'm trying to debug my program and I get the following error: 我正在尝试调试程序,但出现以下错误:

Source not found The JAR file C:\\Users..\\mysql-connector-java-5.1.20-bin.jar has no source attachement. 找不到源JAR文件C:\\ Users .. \\ mysql-connector-java-5.1.20-bin.jar没有源附件。 You can attach the source by clicking attach source below: 您可以通过单击下面的附加源来附加源:

I have add a package that contains mysql-connector-java-5.1.20-bin.jar and there is a folder named src inside the package. 我添加了一个包含mysql-connector-java-5.1.20-bin.jar的软件包,并且该软件包内有一个名为src的文件夹。 The connection with the DB is done successfully. 与数据库的连接已成功完成。

What could be the problem ? 可能是什么问题呢 ?

If you need/want to step into some method of your driver during the debug session, your IDE will need the source. 如果您需要/想要在调试会话期间进入某种驱动程序方法,则IDE将需要源代码。 In NetBeans you can add the sources in the library configuration. 在NetBeans中,您可以在库配置中添加源。 In Eclipse I think that this is available too. 我认为在Eclipse中也可以使用。 Take a look here: Eclipse: Attach source/javadoc to a library via a local property 在这里看看: Eclipse:通过本地属性将源代码/ javadoc附加到库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM