Attach the Source in Eclipse of a jar

前端 未结 11 1650
清歌不尽
清歌不尽 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:47

    Eclipse is showing no source found because there is no source available . Your jar only has the compiled classes.

    You need to import the project from jar and add the Project as dependency .

    Other option is to go to the

    Go to Properties (for the Project) -> Java Build Path -> Libraries , select your jar file and click on the source , there will be option to attach the source and Javadocs.

提交回复
热议问题