简体   繁体   中英

Unshow variable in Debug Java Eclipse when add jar file

I use jxl-2.6.9.jar to read excel in java by eclipse. But when I debug:

1)it shows "source not found". And when i use any *.jar file it still show "source not found" and doesn't show any variables. It debug too long to see variables.

2)It just show a lot of line of "Launcher, Event Dispath ...", doesn't show line by line on code as normal dubug when don't use jar file.

3)I search on google some ways as: "Edit source lookup path" but it doesn't work.

4)Console: No thing.

5) Project run good but not debug.

While debugging try STEP OVER(F6) instead of STEP INTO(F5) maybe the 'source not found ' errors which you are getting were in relation to external libraries which you do not need to debug. Thanks! and if the solution doesn't work,please attach a screenshot of your problem it will be more easy to understand the exact problem.

if you don't have a problem switching to jxl-2.6.12 you can download the jar and the sources here at maven central

when eclipse tells you "source not found" point it to the source file.

i would strongly recommend using maven in the future, even for small projects. with maven you can automatically download source and documentation for your external libraries.

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