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

419 views Asked by At

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?

1

There are 1 answers

0
Rami Sabbagh On BEST ANSWER

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