javaintellij-ideajavadocjava-13

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....

The JavaDoc generation dialog

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

The documentation paths dialog

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?


Solution

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