英文:
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...
.
I've tried to add my extracted jdk java in File > Project Structure > Platform Settings > SDKs > 13 > Documentation Paths
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...
.
I've tried to add my extracted jdk java in File > Project Structure > Platform Settings > SDKs > 13 > Documentation Paths
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.
专注分享java语言的经验与见解,让所有开发者获益!
评论