Javadoc在Eclipse中不可用 [英] Javadoc not available in Eclipse
问题描述
版本:Helios Service Release 2
Build id:20110218-0911
我有一个类似于此 stackoverflow问题的问题
在阅读其他问题时,我发现错误
此元素没有附加源并且在附加的Javadoc中找不到Javadoc
是由Eclipse无法找到javadoc文件引起的。 >
我检查过,我在c程序文件/ java位置都有JDK和JRE。
我在C:\Program Files \Java\jdk1.6.0_30中有src.zip文件,我在C:/ Program Files / Java / jre6 / lib / rt.jar中有src lib文件
这两个路径都在类路径变量中设置。
安装的JRE是指C:\Program Files\所有JRE系统库的Java\jre6和javadoc位置都设置为 http:// java.sun.com/javase/6/docs/api/
但是我仍然无法看到鼠标悬停在任何java或android方法
你有什么建议,如何使这个工作?
Eclipse,转到窗口,首选项,并导航到javadoc选项或键入javadoc,其中它显示类型过滤器文本。
检查选项'Process Javadoc comments'是否被选中。
在您勾选/取消勾选该选项后,可能会要求您对项目进行全面重建。
I am using Eclipse IDE for Java Developers
Version: Helios Service Release 2 Build id: 20110218-0911
I have a problem similar to this stackoverflow question
On reading other questions, I have found that the error
This element has no attached source and the Javadoc could not be found in the attached Javadoc
is caused by Eclipse not being able to locate the javadoc file.
I checked, I have both JDK and JRE in c program files / java location. I have src.zip file at C:\Program Files\Java\jdk1.6.0_30, I have src lib file at C:/Program Files/Java/jre6/lib/rt.jar
Both these paths are set in classpath variables.
Installed JRE is referring to C:\Program Files\Java\jre6 and javadoc location for all JRE system libraries is set to http://java.sun.com/javase/6/docs/api/
But still I am not able to see the javadoc on mouse hover of any java or android methods
Do you have any advice on how to get this working?
In Eclipse, go to Window, Preferences, and navigate to the javadoc options or type javadoc where it says 'type filter text'. Check if the options 'Process Javadoc comments' is checked. It may ask you to do a full rebuild of your projects after you check/uncheck that option.
这篇关于Javadoc在Eclipse中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!