Attach the Source in Eclipse of a jar

前端 未结 11 1641
清歌不尽
清歌不尽 2020-11-28 06:46

I added a Student.jar into my Build Path in my eclipse like this-

Right click on the project->BuildPath->Configure Build P

11条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 07:30

    Use Java Source Attacher !

    It does what eclipse should do - a right click context menu that says "Attach Java Source.

    enter image description here

    It automatically downloads the source for you and attaches it. I've only hit a couple libraries it doesn't know about and when that happens it lets you contribute the url back to the community so no one else will have a problem with that library.

提交回复
热议问题