Netbeans Download Javadoc repeatedly

白昼怎懂夜的黑 提交于 2019-12-04 03:22:53

问题


I work with Netbeans 7.0.1 for a research project. My issue is that each time I want to check the javadoc for a given function or class (from the auto-completion menu), Netbeans downloads Javadoc and caches it only while it's running. If I restart Netbeans, I have to download the javadoc again.

Is there a way to tell Netbeans to cache the Javadoc for ever? I work with Mac OS.


回答1:


It seems strange that you download the Javadoc everytime... To configure javadoc in Netbeans :

Tools -> Java Platforms

Choose your JDK, the in the pane Javadoc the URL should be :

http://download.oracle.com/javase/7/docs/api/

If you have problem with this remove it and download the javadoc zip and add it instead of the url.


JDK8 updated link (thanks @Tim S) : http://www.oracle.com/technetwork/java/javase/documentation/jdk8-doc-downloads-2133158.html




回答2:


I am using JDK 1.8 with Netbeans 8.0.2. I was also facing the same problem as Netbeans was continuously downloading the Javadoc from internet.

I found solution to this as:
Open Netbeans, then go to Tools -> Java Platforms. Then go to Javadoc tab and remove any URLs added for platform javadoc.
In Source tab you can add specific Javadoc from your local environment, that you can download from oracle website i.e. Java SE 8 Doc.
This stopped continues download of Javadoc from internet.



来源:https://stackoverflow.com/questions/9638339/netbeans-download-javadoc-repeatedly

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