Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Java docs to Eclipse Project whlie exporting jar

So I have a Java Project in Eclipse for which I can generate a Jar file. Now I can use this jar file in other projects. However when I add this jar file to other project's build path using e.g Eclipse, it does not show any documentation.

It only works, if while generating Jar file, I also separately generate java docs, and on the user side, when I import this jar, I have to separately specify the java docs for this jar.

I just want to know, is there any way that I can export java docs and the project altogether as a single jar, so that when imported in other projects using Eclipse IDE it shows the documentation without having to import the java docs explicitly?

like image 359
Johnydep Avatar asked Jan 18 '12 10:01

Johnydep


1 Answers

If you select the option "Export source files and resources" while exporting the jar file, you should be able to see the docs in other projects.

like image 55
Manish Avatar answered Oct 20 '22 18:10

Manish