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.

Chloe
  • 25,162
  • 40
  • 190
  • 357
  • Interim solution: https://glassfish.java.net/nonav/javaee5/api/. However, that is for Java 5 so it likely out of date. Using Java 7 and JPA 2. – Chloe Oct 16 '13 at 18:15
  • are you using maven or this is standalone jar that you have added in your project. – Rupesh Oct 16 '13 at 18:25
  • @Rupesh I am not using Maven. I'm using Google Eclipse plugin, which includes JARs for AppEngine and JPA. – Chloe Oct 16 '13 at 18:31
  • I just provided solution assuming you are using maven :) – Rupesh Oct 16 '13 at 18:31

5 Answers5

1

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

enter image description here

Rupesh
  • 2,627
  • 1
  • 28
  • 42
1

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.

Chloe
  • 25,162
  • 40
  • 190
  • 357
0

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.

Stefano Sanfilippo
  • 32,265
  • 7
  • 79
  • 80
  • Ok that was nice, however the descriptions of all methods are empty! For example, EntityManager. I also tried 2.0. I was expecting at least "see also...". – Chloe Oct 16 '13 at 18:07
  • A quick inspection of the source code shows that those classes/interfaces are not documented at all. – Stefano Sanfilippo Oct 16 '13 at 18:25
0

You can find the source in the Apache SVN repo

Jasha
  • 781
  • 9
  • 15
  • Unfortunately, there are no JavaDoc comments in those classes. They are bare Interfaces. – Chloe Oct 16 '13 at 18:33
  • If you want Javadocs, hibernate-jpa-2.0-api is a better option. JPA 2.0 is the specification, several vendors have implemented it. – Jasha Oct 16 '13 at 18:58
0

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

Rahul Goyal
  • 644
  • 1
  • 8
  • 19