0

In Eclipse, in JPA Project (runs in Java SE), Properties->Javadoc location, I attached the JavaDoc at path

/usr/share/javadoc/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc19/api/

The documentation for Java works but if I pass the mouse pointer over some JPA functions (ex. getTransaction().begin() ) I obtain the error message:

void javax.persistence.EntityTransaction.begin()

Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.

How can I fix this problem?

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Germano Massullo
  • 2,572
  • 11
  • 40
  • 55
  • 1
    Refer this http://stackoverflow.com/questions/9873152/how-to-attach-javadoc-or-sources-to-jars-in-libs-folder – Ashish Oct 25 '13 at 09:29

2 Answers2

3

You should download Java EE API http://www.oracle.com/technetwork/java/javaee/documentation/apis-139520.html JPA is there.

Evgeniy Dorofeev
  • 133,369
  • 30
  • 199
  • 275
0

You can use the online link: https://docs.oracle.com/javaee/7/api/

Or download the zip file: http://download.oracle.com/otndocs/jcp/j2ee-1.4-fr-doc-oth-JSpec/

Or if you are using Maven, you can enable "Download Artifact JavaDoc" on its Preferences page.

Bill_BsB
  • 314
  • 3
  • 14