找不到源 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

查看:294
本文介绍了找不到源 JAR 文件 mysql-connector-java-5.1.20-bin.jar 没有源附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与 MySQL 数据库连接的 Java 程序.我正在尝试调试我的程序,但出现以下错误:

I have a Java program connected with MySQL database. I'm trying to debug my program and I get the following error:

未找到源 JAR 文件C:\Users..\mysql-connector-java-5.1.20-bin.jar 没有源码附件.您可以通过单击附加源来附加源下面:

Source not found The JAR file C:\Users..\mysql-connector-java-5.1.20-bin.jar has no source attachement. You can attach the source by clicking attach source below:

我添加了一个包含 mysql-connector-java-5.1.20-bin.jar 的包,包内有一个名为 src 的文件夹.与数据库的连接成功完成.

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. The connection with the DB is done successfully.

可能是什么问题?

推荐答案

如果您需要/想要在调试会话期间进入驱动程序的某些方法,您的 IDE 将需要源代码.在 NetBeans 中,您可以在库配置中添加源.在 Eclipse 中,我认为这也可用.看看这里:Eclipse:附加源/javadoc 通过本地属性到库

If you need/want to step into some method of your driver during the debug session, your IDE will need the source. In NetBeans you can add the sources in the library configuration. In Eclipse I think that this is available too. Take a look here: Eclipse: Attach source/javadoc to a library via a local property

这篇关于找不到源 JAR 文件 mysql-connector-java-5.1.20-bin.jar 没有源附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆