Java docs not available on IntelliJ










1















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










share|improve this question



















  • 1





    For starters, you're looking at the decompiled version of that class, which would never contain comments...

    – Makoto
    Nov 5 '18 at 19:20











  • Well, when I do CTRL+Click, this is where it took me. It works for Spring classes, not sure, what's wrong here

    – Jadda
    Nov 5 '18 at 19:23











  • IntelliJ's default kay map differs by platform and I use a Mac. That being said what happens if you put the cursor on a method and press the F1 key?

    – HairOfTheDog
    Nov 5 '18 at 19:36











  • @HairOfTheDog I think this issue is related to IntelliJ loading docs, not a key combination. Because Spring docs working with same key combination

    – Jadda
    Nov 5 '18 at 19:41











  • I made that suggestion because I expect control-click to navigate to method definition, not JavaDoc. I expect F1 to open the JavaDoc for a method. Give it a try.

    – HairOfTheDog
    Nov 5 '18 at 19:45















1















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










share|improve this question



















  • 1





    For starters, you're looking at the decompiled version of that class, which would never contain comments...

    – Makoto
    Nov 5 '18 at 19:20











  • Well, when I do CTRL+Click, this is where it took me. It works for Spring classes, not sure, what's wrong here

    – Jadda
    Nov 5 '18 at 19:23











  • IntelliJ's default kay map differs by platform and I use a Mac. That being said what happens if you put the cursor on a method and press the F1 key?

    – HairOfTheDog
    Nov 5 '18 at 19:36











  • @HairOfTheDog I think this issue is related to IntelliJ loading docs, not a key combination. Because Spring docs working with same key combination

    – Jadda
    Nov 5 '18 at 19:41











  • I made that suggestion because I expect control-click to navigate to method definition, not JavaDoc. I expect F1 to open the JavaDoc for a method. Give it a try.

    – HairOfTheDog
    Nov 5 '18 at 19:45













1












1








1








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










share|improve this question
















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







intellij-idea javadoc






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 5 '18 at 21:47









Code-Apprentice

48.4k1490179




48.4k1490179










asked Nov 5 '18 at 19:14









JaddaJadda

247316




247316







  • 1





    For starters, you're looking at the decompiled version of that class, which would never contain comments...

    – Makoto
    Nov 5 '18 at 19:20











  • Well, when I do CTRL+Click, this is where it took me. It works for Spring classes, not sure, what's wrong here

    – Jadda
    Nov 5 '18 at 19:23











  • IntelliJ's default kay map differs by platform and I use a Mac. That being said what happens if you put the cursor on a method and press the F1 key?

    – HairOfTheDog
    Nov 5 '18 at 19:36











  • @HairOfTheDog I think this issue is related to IntelliJ loading docs, not a key combination. Because Spring docs working with same key combination

    – Jadda
    Nov 5 '18 at 19:41











  • I made that suggestion because I expect control-click to navigate to method definition, not JavaDoc. I expect F1 to open the JavaDoc for a method. Give it a try.

    – HairOfTheDog
    Nov 5 '18 at 19:45












  • 1





    For starters, you're looking at the decompiled version of that class, which would never contain comments...

    – Makoto
    Nov 5 '18 at 19:20











  • Well, when I do CTRL+Click, this is where it took me. It works for Spring classes, not sure, what's wrong here

    – Jadda
    Nov 5 '18 at 19:23











  • IntelliJ's default kay map differs by platform and I use a Mac. That being said what happens if you put the cursor on a method and press the F1 key?

    – HairOfTheDog
    Nov 5 '18 at 19:36











  • @HairOfTheDog I think this issue is related to IntelliJ loading docs, not a key combination. Because Spring docs working with same key combination

    – Jadda
    Nov 5 '18 at 19:41











  • I made that suggestion because I expect control-click to navigate to method definition, not JavaDoc. I expect F1 to open the JavaDoc for a method. Give it a try.

    – HairOfTheDog
    Nov 5 '18 at 19:45







1




1





For starters, you're looking at the decompiled version of that class, which would never contain comments...

– Makoto
Nov 5 '18 at 19:20





For starters, you're looking at the decompiled version of that class, which would never contain comments...

– Makoto
Nov 5 '18 at 19:20













Well, when I do CTRL+Click, this is where it took me. It works for Spring classes, not sure, what's wrong here

– Jadda
Nov 5 '18 at 19:23





Well, when I do CTRL+Click, this is where it took me. It works for Spring classes, not sure, what's wrong here

– Jadda
Nov 5 '18 at 19:23













IntelliJ's default kay map differs by platform and I use a Mac. That being said what happens if you put the cursor on a method and press the F1 key?

– HairOfTheDog
Nov 5 '18 at 19:36





IntelliJ's default kay map differs by platform and I use a Mac. That being said what happens if you put the cursor on a method and press the F1 key?

– HairOfTheDog
Nov 5 '18 at 19:36













@HairOfTheDog I think this issue is related to IntelliJ loading docs, not a key combination. Because Spring docs working with same key combination

– Jadda
Nov 5 '18 at 19:41





@HairOfTheDog I think this issue is related to IntelliJ loading docs, not a key combination. Because Spring docs working with same key combination

– Jadda
Nov 5 '18 at 19:41













I made that suggestion because I expect control-click to navigate to method definition, not JavaDoc. I expect F1 to open the JavaDoc for a method. Give it a try.

– HairOfTheDog
Nov 5 '18 at 19:45





I made that suggestion because I expect control-click to navigate to method definition, not JavaDoc. I expect F1 to open the JavaDoc for a method. Give it a try.

– HairOfTheDog
Nov 5 '18 at 19:45












2 Answers
2






active

oldest

votes


















1














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.






share|improve this answer























  • You are right, I can see the documentation with CTRL+Q. Is there a way to see the documentation similar to Spring documentation (just above the method or class)?

    – Jadda
    Nov 5 '18 at 21:40











  • @Jadda As others stated in previous comments, you are seeing decompiled source code. You need to point the Sourcepath to actual source code which might allow you to see the docs directly in source.

    – Code-Apprentice
    Nov 5 '18 at 23:52











  • He's not seeing decompiled source code. He's seeing the actual source code which is why he also sees JavaDoc. Likely for Spring he downloaded all three Jar files; classes, javadoc and source

    – HairOfTheDog
    Nov 6 '18 at 1:02











  • @HairOfTheDog The screenshot for FileInputStream.class doesn't show any JavaDocs. And because of the .class extension appears to be decompiled.

    – Code-Apprentice
    Nov 6 '18 at 1:13






  • 1





    @Code-Apprentice I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK. But it did not download sources along with JDK. I tried download the sources manually, I got 404 on OpenJDK website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks for the help

    – Jadda
    Nov 9 '18 at 20:06


















0














I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK in IntelliJ. But OpenJDK did not download sources along with JDK. I tried to download the sources manually, but I got 404 on OpenJDK sources website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks everyone for the help






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53160729%2fjava-docs-not-available-on-intellij%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    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.






    share|improve this answer























    • You are right, I can see the documentation with CTRL+Q. Is there a way to see the documentation similar to Spring documentation (just above the method or class)?

      – Jadda
      Nov 5 '18 at 21:40











    • @Jadda As others stated in previous comments, you are seeing decompiled source code. You need to point the Sourcepath to actual source code which might allow you to see the docs directly in source.

      – Code-Apprentice
      Nov 5 '18 at 23:52











    • He's not seeing decompiled source code. He's seeing the actual source code which is why he also sees JavaDoc. Likely for Spring he downloaded all three Jar files; classes, javadoc and source

      – HairOfTheDog
      Nov 6 '18 at 1:02











    • @HairOfTheDog The screenshot for FileInputStream.class doesn't show any JavaDocs. And because of the .class extension appears to be decompiled.

      – Code-Apprentice
      Nov 6 '18 at 1:13






    • 1





      @Code-Apprentice I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK. But it did not download sources along with JDK. I tried download the sources manually, I got 404 on OpenJDK website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks for the help

      – Jadda
      Nov 9 '18 at 20:06















    1














    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.






    share|improve this answer























    • You are right, I can see the documentation with CTRL+Q. Is there a way to see the documentation similar to Spring documentation (just above the method or class)?

      – Jadda
      Nov 5 '18 at 21:40











    • @Jadda As others stated in previous comments, you are seeing decompiled source code. You need to point the Sourcepath to actual source code which might allow you to see the docs directly in source.

      – Code-Apprentice
      Nov 5 '18 at 23:52











    • He's not seeing decompiled source code. He's seeing the actual source code which is why he also sees JavaDoc. Likely for Spring he downloaded all three Jar files; classes, javadoc and source

      – HairOfTheDog
      Nov 6 '18 at 1:02











    • @HairOfTheDog The screenshot for FileInputStream.class doesn't show any JavaDocs. And because of the .class extension appears to be decompiled.

      – Code-Apprentice
      Nov 6 '18 at 1:13






    • 1





      @Code-Apprentice I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK. But it did not download sources along with JDK. I tried download the sources manually, I got 404 on OpenJDK website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks for the help

      – Jadda
      Nov 9 '18 at 20:06













    1












    1








    1







    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.






    share|improve this answer













    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.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 5 '18 at 20:47









    Code-ApprenticeCode-Apprentice

    48.4k1490179




    48.4k1490179












    • You are right, I can see the documentation with CTRL+Q. Is there a way to see the documentation similar to Spring documentation (just above the method or class)?

      – Jadda
      Nov 5 '18 at 21:40











    • @Jadda As others stated in previous comments, you are seeing decompiled source code. You need to point the Sourcepath to actual source code which might allow you to see the docs directly in source.

      – Code-Apprentice
      Nov 5 '18 at 23:52











    • He's not seeing decompiled source code. He's seeing the actual source code which is why he also sees JavaDoc. Likely for Spring he downloaded all three Jar files; classes, javadoc and source

      – HairOfTheDog
      Nov 6 '18 at 1:02











    • @HairOfTheDog The screenshot for FileInputStream.class doesn't show any JavaDocs. And because of the .class extension appears to be decompiled.

      – Code-Apprentice
      Nov 6 '18 at 1:13






    • 1





      @Code-Apprentice I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK. But it did not download sources along with JDK. I tried download the sources manually, I got 404 on OpenJDK website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks for the help

      – Jadda
      Nov 9 '18 at 20:06

















    • You are right, I can see the documentation with CTRL+Q. Is there a way to see the documentation similar to Spring documentation (just above the method or class)?

      – Jadda
      Nov 5 '18 at 21:40











    • @Jadda As others stated in previous comments, you are seeing decompiled source code. You need to point the Sourcepath to actual source code which might allow you to see the docs directly in source.

      – Code-Apprentice
      Nov 5 '18 at 23:52











    • He's not seeing decompiled source code. He's seeing the actual source code which is why he also sees JavaDoc. Likely for Spring he downloaded all three Jar files; classes, javadoc and source

      – HairOfTheDog
      Nov 6 '18 at 1:02











    • @HairOfTheDog The screenshot for FileInputStream.class doesn't show any JavaDocs. And because of the .class extension appears to be decompiled.

      – Code-Apprentice
      Nov 6 '18 at 1:13






    • 1





      @Code-Apprentice I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK. But it did not download sources along with JDK. I tried download the sources manually, I got 404 on OpenJDK website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks for the help

      – Jadda
      Nov 9 '18 at 20:06
















    You are right, I can see the documentation with CTRL+Q. Is there a way to see the documentation similar to Spring documentation (just above the method or class)?

    – Jadda
    Nov 5 '18 at 21:40





    You are right, I can see the documentation with CTRL+Q. Is there a way to see the documentation similar to Spring documentation (just above the method or class)?

    – Jadda
    Nov 5 '18 at 21:40













    @Jadda As others stated in previous comments, you are seeing decompiled source code. You need to point the Sourcepath to actual source code which might allow you to see the docs directly in source.

    – Code-Apprentice
    Nov 5 '18 at 23:52





    @Jadda As others stated in previous comments, you are seeing decompiled source code. You need to point the Sourcepath to actual source code which might allow you to see the docs directly in source.

    – Code-Apprentice
    Nov 5 '18 at 23:52













    He's not seeing decompiled source code. He's seeing the actual source code which is why he also sees JavaDoc. Likely for Spring he downloaded all three Jar files; classes, javadoc and source

    – HairOfTheDog
    Nov 6 '18 at 1:02





    He's not seeing decompiled source code. He's seeing the actual source code which is why he also sees JavaDoc. Likely for Spring he downloaded all three Jar files; classes, javadoc and source

    – HairOfTheDog
    Nov 6 '18 at 1:02













    @HairOfTheDog The screenshot for FileInputStream.class doesn't show any JavaDocs. And because of the .class extension appears to be decompiled.

    – Code-Apprentice
    Nov 6 '18 at 1:13





    @HairOfTheDog The screenshot for FileInputStream.class doesn't show any JavaDocs. And because of the .class extension appears to be decompiled.

    – Code-Apprentice
    Nov 6 '18 at 1:13




    1




    1





    @Code-Apprentice I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK. But it did not download sources along with JDK. I tried download the sources manually, I got 404 on OpenJDK website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks for the help

    – Jadda
    Nov 9 '18 at 20:06





    @Code-Apprentice I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK. But it did not download sources along with JDK. I tried download the sources manually, I got 404 on OpenJDK website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks for the help

    – Jadda
    Nov 9 '18 at 20:06













    0














    I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK in IntelliJ. But OpenJDK did not download sources along with JDK. I tried to download the sources manually, but I got 404 on OpenJDK sources website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks everyone for the help






    share|improve this answer



























      0














      I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK in IntelliJ. But OpenJDK did not download sources along with JDK. I tried to download the sources manually, but I got 404 on OpenJDK sources website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks everyone for the help






      share|improve this answer

























        0












        0








        0







        I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK in IntelliJ. But OpenJDK did not download sources along with JDK. I tried to download the sources manually, but I got 404 on OpenJDK sources website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks everyone for the help






        share|improve this answer













        I figured out the issue. In my Ubuntu machine, I installed open-jdk8 and added as SDK in IntelliJ. But OpenJDK did not download sources along with JDK. I tried to download the sources manually, but I got 404 on OpenJDK sources website. So, uninstalled OpenJDK and installed Oracle JDK. Everything works now. Thanks everyone for the help







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 '18 at 21:48









        JaddaJadda

        247316




        247316



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53160729%2fjava-docs-not-available-on-intellij%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Use pre created SQLite database for Android project in kotlin

            Darth Vader #20

            Ondo