Add the Java document to the eclipse project that exports the jar

So I have a java project in eclipse where I can generate a jar file Now I can use this jar file in other projects However, when I use eclipse, for example, to add this jar file to the build path of other projects, it does not display any documents

It only works. If I generate jar files, I also generate Java documents. On the client side, when I import this jar, I must specify the Java document of this jar separately

I just want to know if there is any way to completely export Java documents and projects as a single jar so that documents will be displayed when imported in other projects using the eclipse ide without explicitly importing Java documents?

Solution

If you select the "export source files and resources" option when exporting jar files, you should be able to view the documents in other projects

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>