Transfer from http://www.cnblogs.com/1995hxt/p/5252098.html
1, open the third-party dependency package, the source file shortcut keys: Ctrl + MouseClick
2, because we download the third party jar package, such as spring and other related dependencies, and there is no additional download of the corresponding source files, so often this problem occurs.
Here's how to fix it:
1, the jar package is compiled generated by the. class file, so install the appropriate anti-compilation plug-in, decompile the. java file, you can view the source code.
2. Download the Jadclipse jar package first (decompile plugin)
Links: sourceforge.net/projects/jadclipse/
3. Then, copy the Net.sf.jadclipse_3.3.0.jar to Eclipse's plugins directory;
4. Delete the org.eclipse.update file from Eclipse's configuration directory,
5. If your eclipse is open, click File->restart in the menu bar.
6, then, from http://varaneckas.com/jad/this link, download the jad executable file, unzip and put on a disk.
7. Open Eclipse,prefrence, set the executable path of jad and the resulting temporary file path:
8. Next, set the *.class file type default open mode:
9. Then, set the *.class without source file type to open in the way:
10. Then press the shortcut key to view the class of the source code you want to view.
Eclipse cannot view third-party jar package file source code workaround