简体   繁体   中英

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. 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. 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. 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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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