Eclipse如何跳转到Java系统类的源代码

In Eclipse you want to navigate to the source code of standard class String, and you get the following message: Source not foundEclipse如何跳转到Java系统类的源代码Solution

(1) Install JDK in your laptop, and then configure it into Windows->Preferences->Java->Installed JRE. Delete existing entry for JRE:



Eclipse如何跳转到Java系统类的源代码

Eclipse如何跳转到Java系统类的源代码And click Add… button:Eclipse如何跳转到Java系统类的源代码Add JDK instead:Eclipse如何跳转到Java系统类的源代码Once added, set JDK as default entry:

Eclipse如何跳转到Java系统类的源代码(2) Preferences->Java Build Path, remove existing entry of JRE:

Eclipse如何跳转到Java系统类的源代码Click Add Library button:Eclipse如何跳转到Java系统类的源代码Choose JDK instead:Eclipse如何跳转到Java系统类的源代码Once done, you can now navigate to the source code of standard class like String now.

上一篇:【小Y学算法】⚡️每日LeetCode打卡⚡️——43. 两数之和 II - 输入有序数组


下一篇:java中讲讲BufferedInputStream的用法,举例?