This article takes the eclipse editor as an example.
1. First, click windows->preference->java->install JARs->select your jre->click Duplicate
2. Find rt.jar and expand it. You will see Soruce attachement:(none). Select it and click Source Attachement on the right...
Free video tutorial sharing:java Free video tutorial
3. In the new window that pops up, select External Location, then click External File.. Find the src in your jdk installation directory. zip, add it in, and then confirm all the way
The above is the detailed content of How to view java source code in IDE. For more information, please follow other related articles on the PHP Chinese website!