Eclipse cannot view source hint source not found

Source: Internet
Author: User

Learning Project code when want to look at the source of the cookie, has been determined to download to the local, but Ctrl + Left key point in, hint source not found (such as), Gray often wonder, then Baidu, we generally think that need to install anti-compilation plugin jad.

Looked at a few tutorials, tried to install several times did not succeed, is clearly I installed the Jad plugin, but also associated with the. class file of the document editor, but still prompt source not found.

The last time it was uninstalled, and then following one of the tutorials, the reinstallation finally succeeded and decided to record the whole process.

First, download the necessary software, plugins

1. jad.exe:http://varaneckas.com/jad/

2. net.sf.jadclipse_3.3.0.jar:http://sourceforge.net/projects/jadclipse/

Second, install software and plug-ins

1. Create a new directory to hold Jad.exe and its temporary files, my new directory here for D:\programfiles\jad\,jad.exe directly placed in this directory, and then in this directory to create a new jadfile for temporary files, such as.


2. Place the downloaded Net.sf.jadclipse_3.3.0.jar in the Eclipse's plugins directory.

Third, the corresponding configuration in eclipse

1. Set the installation path of the Jad.exe and the resulting temporary file path: Windows->preferences->java->jadclipse, as shown in.

Note: (1) after placing the Net.sf.jadclipse_3.3.0.jar in Eclipse's plugins directory, you need to restart Eclipse to see the jadclipse option here.

(2) path to Decompiler must fill in the complete absolute path of the Jad.exe (although I tried to do not write the file suffix can also be normal anti-compilation)

2. Modify the editor for the. Class and. Class without source files, and be sure to set Jad as the default editor, such as.

Follow one or two or three steps to decompile the source code. While writing this article, I carefully read the previous tutorial, I found that some of the areas needing attention, he also mentioned, but I did not notice that at the time, I often refer to several tutorials, found that no one will try another, because of the rush to solve the problem and ignore some key points, So be sure to follow the other people's tutorial carefully, if it is determined that there is no omission or solve the problem to try other.

Network Solutions, but not for everyone to apply, some people do not write a tutorial in detail, will bury some pits, there are many better tutorials worthy of our reference. PS: In fact, I can not guarantee that I wrote this solution without a pit, just solve the problem of my present, take out to share.

There is also a way to view the JDK's official source code:

Under the Perferences window, select java->incelled jres

In the Edit JRE dialog box, locate the file that ends with "Rt.jar". Click Expand.

Select "Source Attachment". Click.

Under the Source Attachment dialog box, select External location. The path is the path to installing the Java JDK, and the key is to find src.zip under this path.

Eclipse cannot view source hint source not found

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.