Search code examples
intellij-ideajavadoc

Java docs not available on IntelliJ


I setup Spring boot project with Java 8 on IntelliJ latest version (2018.2). I was able to do download Spring documentation using Maven->Download Sources and Documentation. But Java docs are not available in my project when I do CTRL+Click, all I see is the source code of the class. When docs loaded properly, we should be able to see documentation on top of method definition. I checked Project Structure -> SDK -> Documentation paths and it has valid URL to Oracle docs. When I clicked on any class, all I see is source code for the class but documentation is missing. I tried to include docs from the Oracle website manually, it did not work either. I am on Ubuntu 18.04 operating system.

Decompiled class file

SDKS

Spring Data documentation


Solution

  • The docs URL setting has nothing to do with the code you see when you navigate to a class from the Java API. Rather, you can place your cursor in a class or method name and press Ctrl+Q to view the documentation in a popup window.