Eclipse cannot view third-party jar package file source code workaround

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.