Error: Failed to create the part’s controls or Resource Not Found when using Ctrl+ left click to view JDK source in Eclipse This is because Eclipse probably uses the JRE instead of the JDK, which is the finished Java Development tool, full name: Java Development Kit.

We need to change the JRE to JDK in two places:

1. Set the global default, so that the next time you create a project, you can see the source code as normal.

Specific steps refer to baidu experience: jingyan.baidu.com/article/020…

2. After the preceding steps are complete. For a project that has already been created, you cannot view the source code by following the steps above, because the JDK resource path of the current project is still unchanged and the path used when the project was created is still used. You need to modify the configuration in the project as follows:

Right-click the project – > Properties – >Java Build Path – > Libraries – > Remove the previously added JRE Path – > Add Library – > Select JRE System Library – > Select Alternate JRE. Select JDK. (If there is no JDK in the option, you didn’t get the first step right).