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.
intellij-idea javadoc
|
show 4 more comments
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.
intellij-idea javadoc
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
|
show 4 more comments
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.
intellij-idea javadoc
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.
intellij-idea javadoc
intellij-idea javadoc
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
|
show 4 more comments
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
|
show 4 more comments
2 Answers
2
active
oldest
votes
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.
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
|
show 2 more comments
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
|
show 2 more comments
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.
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
|
show 2 more comments
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.
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.
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
|
show 2 more comments
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
|
show 2 more comments
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
add a comment |
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
add a comment |
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
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
answered Nov 14 '18 at 21:48
JaddaJadda
247316
247316
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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