I don\'t get the exact method to do this. I want a method not for a single project for all projects in eclipse. Please tell me how to solve this problem.
I know this is a very late answer, but this will help if anyone is using a gradle project.
change your build.gradle to include the following:-
apply plugin: 'java'
apply plugin: 'eclipse'
eclipse {
classpath {
downloadJavadoc = true
downloadSources = true
}
}
This will add both java source and javadoc.
If this still doesnot work then right click on the Project>Build PAth>Configure Build Path>order and Export > and bring Web App libraries to the bottom Then Close the project and reopen it