Issue
I recently switched from java 8 to java 11 in eclipse, by installing the newer jdk and switching the jre in eclipse. The first thing i noticed, that was not working properly, was the javadoc, which read : "Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc."
I then looked up other users with similar problems, but they were all using different versions of java, and the link in my javadoc configuration doesn't work.
(the validate button when selecting the javadoc url also returns "Location might be invalid." for the URL "https://docs.oracle.com/en/java/javase/11/docs/api/").
I suspect that I still have an the old java 8 javadoc installed, which is now looking in the wrong place, but i couldn't find another java 11 javadoc link anywhere.
Solution
As a workaround, download the offline documentation from https://www.oracle.com/java/technologies/javase-jdk11-doc-downloads.html
In your Eclipse project, open "JRE System Library", right-click "java.base", choose "Properties" from context menu.
In the dialog, check the radio button "Javadoc in archive". For the field "Archive path", browse to your downloaded zip. For the field "Path within archive", browse to "docs/api/java.base". Then, "Apply and Close".
Answered By - Thomas Grauschopf