简体   繁体   English

我在哪里可以下载JavaDoc for JPA 2.0?

[英]Where can I download the JavaDoc for JPA 2.0?

In Eclipse, I tried geronimo-jpa_2.0_spec-1.0.jar > right click > Properties > Javadoc Location > Javadoc URL > Javadoc Location Path: http://docs.oracle.com/javaee/7/api/javax/persistence/package-summary.html > Validate... 在Eclipse中,我尝试了geronimo-jpa_2.0_spec-1.0.jar>右键单击>属性> Javadoc位置> Javadoc URL> Javadoc位置路径: http//docs.oracle.com/javaee/7/api/javax/persistence/ package-summary.html >验证...

but it said it could not find package-list or index.html. 但它说无法找到package-list或index.html。 I also removed the HTML file from the path and it still would not work. 我还从路径中删除了HTML文件,它仍然无法正常工作。 I could not find a JAR file to download either. 我也找不到要下载的JAR文件。 I have Google plugin install BTW. 我有谷歌插件安装BTW。

If you have included the jar using maven dependency then you can download javadoc and source code by enabling following settings. 如果您使用maven依赖项包含jar,则可以通过启用以下设置来下载javadoc和源代码。

In Eclipse click on Window >> Preferences >> type maven in search box >> and enable as shown 在Eclipse中单击Window >> Preferences >>在搜索框>>中键入maven并启用,如图所示

在此输入图像描述

I wandered around Oracle's site trying different paths and found it! 我在Oracle的网站上闲逛,尝试不同的路径并找到它!

http://docs.oracle.com/javaee/7/api/ http://docs.oracle.com/javaee/7/api/

This will work in Eclipse and validate. 这将在Eclipse中工作并验证。 It has full text descriptions for things like EntityManager. 它有像EntityManager这样的全文描述。 It has ALL Java EE APIs as well, so you can use it for other JARs that are missing docs. 它还具有所有Java EE API,因此您可以将其用于缺少文档的其他JAR。

If you couldn't find it on Geronimo website, then Maven Central Repository is a good place: from this search result (version 3.0, if you need another one, just change the query), download javadoc.jar , decompress it somewhere and you are set. 如果你在Geronimo网站上找不到它,那么Maven Central Repository就是一个好地方: 从这个搜索结果 (版本3.0,如果你需要另一个,只需更改查询),下载javadoc.jar ,在某处解压缩你就可以了已设定。 Of course, if you are not already using Maven to manage your projects. 当然,如果您尚未使用Maven来管理您的项目。

您可以在Apache SVN repo中找到源代码

When You download ObjectDB.jar package, the java docs are present inside it. 当您下载ObjectDB.jar包时,其中包含java文档。 The the file will be present inside doc folder and it will be named as api-javadoc.zip. 该文件将出现在doc文件夹中,并将其命名为api-javadoc.zip。 For adding it in netbeans do the following: 1. click tool 2. click java platform 3. goto javadocs 4. click on add folder/jar files 5. browse to add the api-javadoc.jar file 6. click close 7. restart netbeans 要在netbeans中添加它,请执行以下操作:1。单击工具2.单击java平台3.转到javadocs 4.单击添加文件夹/ jar文件5.浏览以添加api-javadoc.jar文件6.单击关闭7.重新启动NetBeans的

enjoy..:) 请享用..:)

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

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