Eclipse times out when trying to show Javadoc for classes in rt.jar

左心房为你撑大大i 提交于 2019-12-06 07:57:38

The issue was triggered because my Eclipse installation was configured to use my local JRE, rather than my JDK. As the JRE does not contain the Java sources (nor attached Javadocs), Eclipse was forced to retrieve this information from the web. Presumably some network lag was causing problems on occasions.

I resolved this by adding a reference to my local JDK in Preferences > Java > Installed JREs and removing the reference to the old JRE.

user1769617

I had the same problem with Eclipse 3.7.1 and solved it by going to

Window -> Preferences -> Java -> Installed JREs -> Execution Environment -> JavaSE-1.7

and then I selected the jdk option instead of jre7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!