如何在IntelliJ IDEA中将JavaDoc链接到JDK的文档

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

How to make JavaDoc link to JDK's documentation in Intellj IDEA

问题

I'm generating javadoc of my Java project in Intellj IDEA, and I want it to link into the JDK's documentation.

I'm generating the documentation using Tools > Generate JavaDoc....

如何在IntelliJ IDEA中将JavaDoc链接到JDK的文档

I've tried to add my extracted jdk java in File > Project Structure > Platform Settings > SDKs > 13 > Documentation Paths

如何在IntelliJ IDEA中将JavaDoc链接到JDK的文档

But it always results with this error:

...

Constructing Javadoc information...
javadoc: error - Error fetching URL: file://C:/Users/Rami/Documents/Documentation/jdk-13.0.2_doc-all/docs/api/
Standard Doclet version 13.0.2

...

And the generated documentation doesn't link to my local JDK javadoc...

What do I have configured wrong?

英文:

I'm generating javadoc of my Java project in Intellj IDEA, and I want it to link into the JDK's documentation.

I'm generating the documentation using Tools > Generate JavaDoc....

如何在IntelliJ IDEA中将JavaDoc链接到JDK的文档

I've tried to add my extracted jdk java in File > Project Structure > Platform Settings > SDKs > 13 > Documentation Paths

如何在IntelliJ IDEA中将JavaDoc链接到JDK的文档

But it always results with this error:

...

Constructing Javadoc information...
javadoc: error - Error fetching URL: file://C:/Users/Rami/Documents/Documentation/jdk-13.0.2_doc-all/docs/api/
Standard Doclet version 13.0.2

...

And the generated documentation doesn't link to my local JDK javadoc...

What do I have configured wrong?

答案1

得分: 1

我通过运行本地HTTP服务器,并将Javadoc链接到localhost来解决了这个问题。

英文:

I've solved the issue by running a local HTTP server, and linking the Javadoc with localhost.

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

发表评论

匿名网友

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

确定