简体   繁体   English

Eclipse为什么找不到JavaDoc?

[英]Why can't Eclipse find the JavaDoc?

I have installed the Java3D API and the documentation. 我已经安装了Java3D API和文档。 Here is where I got the documentation from: 这是我从中获得文档的地方:

http://www.oracle.com/technetwork/java/javase/tech/index-jsp-138252.html http://www.oracle.com/technetwork/java/javase/tech/index-jsp-138252.html

now, i followed these instructions to install the JavaDoc for Eclipse: 现在,我按照以下说明安装了JavaDoc for Eclipse:

JavaDoc in an Eclipse Android Project Eclipse Android项目中的JavaDoc

I set the path of the documentation for the jars to the location of the documentation on my computer. 我将jar文件的文档路径设置为计算机上文档的位置。 When I click on an Object name in Eclipse, the popup window pops up, but it says "Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found." 当我在Eclipse中单击对象名称时,将弹出一个弹出窗口,但显示“注意:该元素既未附加源代码,也未附加Javadoc,因此找不到Javadoc。” Is there anything I'm missing here? 我在这里想念什么吗? It would be a lot more convenient if the info could just show up in the popup window instead of me rooting through the documentation by hand. 如果信息仅显示在弹出窗口中,而不是让我手工扎根文档,那将更加方便。


edit 编辑

this is that my eclipse looks like right now: 这是我的日食现在看起来像:

在此处输入图片说明

Here is what i have the path set to: 这是我设置的路径:

http://download.java.net/media/java3d/javadoc/1.5.2-latest/ http://download.java.net/media/java3d/javadoc/1.5.2-latest/

Still no luck, i still get the same popup saying it can't find the javadoc. 仍然没有运气,我仍然得到相同的弹出窗口,说它找不到javadoc。

Normally that should do the trick, but I'll just try to rephrase the instructions you have previously followed, maybe you missed a step: 通常,这应该可以解决问题,但是我将尝试改写以前遵循的说明,也许您错过了一步:

  1. Right click your project -> Properties 右键单击您的项目->属性
  2. Select Java build path in the tree on the left 在左侧的树中选择Java build path
  3. Select Libraries tab 选择Libraries选项卡
  4. [Skip if using maven] Add your library to the classpath [如果使用Maven,请跳过]将您的库添加到类路径
  5. [Only if using maven] Expand the maven library by clicking on the small arrow in front of it [仅当使用maven时]单击maven库前面的小箭头以展开它
  6. Expand the 3d jar options by clicking on the small arrow in front of it 通过单击前面的小箭头来展开3d jar选项
  7. Click on the Edit button and select your zip location in Archive path 单击“ Edit按钮,然后在“ Archive path选择您的邮政编码位置
  8. If you open the zip, you'll see that all the documentation is in the folder java3d-1_4_0-doc . 如果打开zip,您会看到所有文档都在文件夹java3d-1_4_0-doc You should add that to the Path within archive input box 您应该将其添加到“ Path within archive中的Path within archive输入框中
  9. Click ok, ok, ok... 单击确定,确定,确定...

This should set you up. 这应该设置您。 You could also extract the archive to a desire folder or use the online URL (the one that bitwave suggested , but please be aware that you'll be needing a constant internet connection to access it) and specify whichever you want in the Javadoc URL input box. 您还可以将存档提取到所需的文件夹或使用在线URL( bitwave建议使用的URL,但请注意,您将需要持续的Internet连接来访问它),并在Javadoc URL输入中指定所需的内容框。

Cheers 干杯

It's not your problem ;) 这不是你的问题;)

The documentation is a collection of HTML-files. 该文档是HTML文件的集合。 ( like this ) 像这样

You have to unpack the zip and then you can view this in a browser like Internet Explorer or Google Chrome via File->Open File... 您必须解压缩该zip文件,然后才能在Internet Explorer或Google Chrome这样的浏览器中通过File-> Open File ...查看该文件。

To use the Java-Doc, a special JAR-file must provided by Oracle. 要使用Java-Doc,Oracle必须提供一个特殊的JAR文件。 In this JAR-file there are .java-files with 在这个JAR文件中,.java文件带有

/**
 * This is JavaDoc 
 */

/*
 *This is a typical comment...
 */

Oracle haven't provided this JAR yet, so you can only use the Browser... Oracle尚未提供此JAR,因此您只能使用浏览器...

Hope I can helped you... 希望我能帮助你...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM