Reputation: 1767
I don't see the documentation in my Maven project for Java dependencies that are decompiled from .class files. It does work for external Maven dependencies.
I have activated the following settings.
Settings->Importing->Automatically Download->Sources & Documentation
And also, right click pom.xml
and download documentation there.
How can I make IDEA fetch documentation for these core Java files?
Refer screenshots below to see examples of both scenarios.
Upvotes: 4
Views: 989
Reputation: 51
As answered above you should add src.zip
file to your project's Sourcepath
.
Note, src.zip
file is not included in jdk by default. To install it try:
sudo apt-get install openjdk-XX-source
The result will be as showed below:
Upvotes: 0
Reputation: 402433
You need to make sure the sources are attached to the JDK configuration. It should work out of the box, but it could be that your JDK installation is incomplete and is missing the sources.
src.zip
must be present in the Sourcepath of the JDK configuration:
Try reinstalling JDK from the official download page and configure it again in IntelliJ IDEA.
Upvotes: 3