you can try to ctrl + click on a class that has no source attached (do that in editor). when it shows you some info about the class you'll see the button that guides to attach source dialog. click it and in dialog that pops up pick the source/javadoc location for your class.
you can also do that from project build path settings you are mentioning: pick libraries tab, expand the library (jar) you want and you'll be offered to pick: source attachment, javadoc attachment, native library location, etc. you just pick whatever you want and edit its current settings.
or you can do as @jb nizet said...
the easiest way is :
- press control+(the word for which you want to see the java doc)
- a page will appear that has a button for attach source.click this
- select external location.
- browse the location to java folder than your
- press ok.
the problem is solved.
you can also edit the classpathentry in the file ".classpath" in your eclipse project. this can be helpful if you want to modify many entries at once or if you want to generate the path. e.g.:
<classpathentry kind="var" path="home/3rdparty/junit.jar" sourcepath="/source/junit_src.zip"/>
right-click on the jar (the one with the class files), choose "properties", the "javadoc location", and choose the jar file with the javadoc. do similarly for the source jar, using "java source attachment".
- right click over the project -> build path -> configure build path
- in the new window, go to the "libraries" tab.
- select the library and expand it.
- there are 4 child options. select "javadoc location" and click the "edit" button on the right.
- now you can add a jar file containing the docs. this would be just a zip file with the extension changed to jar. make sure inside the jar the index.html is in the root. you can press the "validate" button to check everything is ok.
- Eclipse how to link a jar containing javadocs/source with its binary?
- How to compile jar file containing only .java source files into .jar files containing .class files with Eclipse
- How to use an existing source jar with nested folders as Eclipse Source Attachment
- How do I build an Eclipse feature from source that uses Maven with Tycho as its build system?
- Maven with Eclipse -- point to the proper source file in another project, not binary jar
- How to attach source or JavaDoc in eclipse for any jar file e.g. JavaFX?
- How to make eclipse "File Search" to also search inside source jars containing some text?
- Debugging jar file with source code attached in eclipse
- How do I set a folder as a Source Folder in Eclipse with Gradle?
- How to get gdb working with Eclipse CDT under windows (fails to find source code)
- Eclipse : How to remove the attached Source which was added to a Jar
- How can I link source to a jar package in eclipse?
- Eclipse autocompletion - how does it know about generics when only binary jar is available?
- How to export an Eclipse Project with External Jar dependencies?
- How to setup eclipse ide for php development with pre-existing source
- How do you build a JAR in eclipse with a custom manifest file?
- how to create a not runnable/not executable jar with other external jar dependencies in Eclipse
- How do I configure Eclipse to use an existing git repository with existing source code?
- ctrl click class in Eclipse shows binary / jar instead of source
- how to import source code into Eclipse from a jar file?
- How can I browse the source code in a jar file containing source code in Eclipse?
- How to create runnable jar with resources in Eclipse from Maven project
- How to include the jars referenced in "Java Build Path" section of an Eclipse project in a jar file generated with Ant using a build.xml file
- how to work with Eclipse Source Code in Eclipse itself
- How to export java project from eclipse into a jar file with images
- How to attach the source to the jar in the Gradle Eclipse Project when the source attachment is not modifiable?
- How to make the runnable jar file for a maven eclipse project with hibernate configuration
- Downloading Jetty source and Javadoc jars with maven and linking them to binary jars in Eclipse
- How to track down JAR with corrupt JAR Index that cause InvalidJarIndexException in Tomcat in Eclipse
- How can I get an Eclipse installation that includes source code of its plugins?
More Query from same tag
- While moving quickblox application eclipse to android studio getting error
- Running Visual VM from eclipse
- Eclipse shows multiple errors in Physics Box2D extension
- Undo closed tab in Eclipse?
- How to scrape view count on Youtube video with Jsoup?
- Gson serialized name: "Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor"
- inserting data using variables in sqlite db
- Relative Path Issue Eclipse
- Find html class inside Android WebView
- In Eclipse, when debugging, is there an easy way to see a variable's total memory size?
- Android Manifest Editor (Eclipse)
- Alternate for thread.sleep(9000) in every line in selenium
- How to install JRE 1.7 on Mac OS X and use it with Eclipse?
- STS application applicationContext.xml validation
- Error: method X must override or implement a supertype method
- How do you isolate a single project in Eclipse?
- Why doesn't Eclipse generate javadoc for all classes
- How do I programmatically run all the JUnit tests in my Java application?
- Reading .xlsx in java
- CMake and Eclipse CDT: Launch failed. Binary not found
- Equinox OSGi activating two versions of the same bundle
- Creating ASCII Art in Java
- Add icon to "About Eclipse Platform" dialog in Eclipse
- mvn android:deploy -> Unfortunately App has stopped
- missing tools.jar error on Update Maven Project
- How can I change my app font
- Unresolved import in PyDev Eclipse (Win7 x64)
- How to make term and condition activity in an Android application in Android Studio
- Change Font Size for Auto-Complete Suggestions Java Eclipse