简体   繁体   中英

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...

but it said it could not find package-list or index.html. I also removed the HTML file from the path and it still would not work. I could not find a JAR file to download either. I have Google plugin install BTW.

If you have included the jar using maven dependency then you can download javadoc and source code by enabling following settings.

In Eclipse click on Window >> Preferences >> type maven in search box >> and enable as shown

在此输入图像描述

I wandered around Oracle's site trying different paths and found it!

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

This will work in Eclipse and validate. It has full text descriptions for things like EntityManager. It has ALL Java EE APIs as well, so you can use it for other JARs that are missing docs.

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. Of course, if you are not already using Maven to manage your projects.

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

When You download ObjectDB.jar package, the java docs are present inside it. The the file will be present inside doc folder and it will be named as 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

enjoy..:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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