Eclipse查看源码显示Resource not found

时间:2024-03-31 09:17:14

有时Eclipe配置不好时,会出现source not found的问题。解决方法如下:

(1) 打开window种的preference

Eclipse查看源码显示Resource not found

(2) 选择Java中的 Installed JREs

Eclipse查看源码显示Resource not found

 

(3)  单击右侧的jre并进行Edit

Eclipse查看源码显示Resource not found

(4)选择rt.jar文件并单击Source Attachment

Eclipse查看源码显示Resource not found

(5) 选择Exterenal location,将Path选择为JDK下的src.zip文件即可。并确认依次选择OK-->Finish-->Apply and close.

     完成上述所有操作后即可正常查看原代码!

Eclipse查看源码显示Resource not found

Eclipse查看源码显示Resource not foundEclipse查看源码显示Resource not found