自定义 Javadoc 在集成开发环境中未显示。

huangapple go评论72阅读模式
英文:

Custom Javadoc not showing in IDE

问题

我已经构建了一个库并将其作为“External JAR”链接到我的Eclipse项目中。
尽管该库运行良好,但我无法使我编写的Javadoc显示出来,因为Eclipse一直显示给我:

我已经阅读了一些类似的帖子,它们都涉及到javadoc文件的位置,但我没有单独的Javadoc文件。所有的Javadoc都写在字段和方法上面,带有基本的注释。

我应该如何“链接”已经存在于库文件中的Javadoc?谢谢。

英文:

I have built a library and linked it to my Eclipse project as an External JAR.<br>
Though the library works well, I couldn't make the Javadoc I wrote appear, as Eclipse keeps showing me:

<img src="https://i.stack.imgur.com/twOnp.png" width="500" height="100">

I've read through some similar posts and they all refer to the javadoc file location, but I have no separate file for Javadoc. Everything is written above fields and methods with basic annotations.<br><br>
How am I supposed to "link" a javadoc that is already present in the library files ? Thank you.

答案1

得分: 1

你可以导出这个JAR文件,在导出窗口中,你可以勾选选项 导出Java源文件和资源

我知道这不是理想的修复方法(因为这将导出你的源代码),但它确实有效。

英文:

You could export the jar, and in the export window you can mark the option export java source files and resources

I know this insn't the ideal fix(cause you would be exporting your source code) but it does work

huangapple
  • 本文由 发表于 2020年7月24日 02:37:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/63060982.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定