When in Eclipse click ctrl + клик on the system class, for example, on String , a message appears that the source is not found on the path C:\Program Files\Java\jre7\lib\rt.jar

I went to Window / Preferences / Java / Installed JREs and added and selected JDK - D:\Program Files\Java\jdk1.7.0_10

But the source is still not located. Where else do you need to make changes?

    2 answers 2

    1. Download the latest JDK off. site and install
    2. Run Eclipse, go to Window -> Preferences -> Java -> Installed JREs, click the Add button and specify the path to the JRE (in our case, inside the installed folder with the JDK, by default something like C: \ Program Files \ Java \ jdk1. 7.0_17 \ jre)
    3. In the JRE system libraries field, select all the libraries (ctrl + a) and click the Source attachment ... button, switch to the External location item, click the External File button and specify the src.zip file (it is in the root of the folder with the JDK installed)

    If the JRE is already installed and is in the list, then it is not necessary to add a new one, you can simply edit by specifying the source attachment for all libraries ... src.zip from the jdk folder

      So will work

      Eclipse for jars, debugging and code look-up - JDK Example .