[英]How to add description for methods in a user created jar?
I created a jar file through export option in eclipse mars. 我通过eclipse mars中的export选项创建了一个jar文件。 I tried to add it to a project using build path->add external jar. 我试图使用构建路径->添加外部jar将其添加到项目中。 It worked perfectly. 效果很好。 But in my program, when I hover the mouse over any method that is present in the jar, it says "Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.". 但是在我的程序中,当我将鼠标悬停在jar中存在的任何方法上时,它会显示“注意:该元素既未附加源代码,也未附加Javadoc,因此找不到Javadoc。”。 It would be nice if there is some description added to these methods that we create. 如果我们创建的这些方法中添加了一些描述,那将是很好的。 Please do let me know is any of you have done this. 请让我知道你们中的任何一个已经做到了。
As stated in my comment, you need to add the javadoc to the lib/jar you are using... 如我的评论所述,您需要将javadoc添加到您正在使用的lib / jar中...
so first be sure you have both in your project... 因此,首先请确保您的项目中同时包含了这两个项目...
take a look at the animation, is very straight forward about what you need to do... 看一下动画,非常直观地了解您需要做什么...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.