简体   繁体   中英

add Javadoc for hibernate in netbeans

How to add javadoc in netbeans
mainly me using it for spring hibernate. Its not showing help and saying Javadoc not found
How to add doc for org.​hibernate
When selecting a function it is showing like this

    Javadoc not found. Either Javadoc documentation for this item does not exist or
  you have not added specified Javadoc in the Java Platform Manager or the Library Manager.

First you need to download the source and Javadocs for the Hibernate, the version you are using. You can easily find that by searching over the internet. After saving the docs and source on the disk some where appropriate,

Go to project properties -> libraries -> select hibernate JAR -> click Edit -> browse to Javadocs and Source .

Here is article along with pictorial representation how to add javadoc for any lib

  1. Go to sourceforge at http://sourceforge.net/projects/hibernate/files/hibernate3/ ,
  2. download the 3.2.2.ga hibernate bundle and include the javadocs and sources from there according to article describes [select version as per your lib].

For my case I'm using Netbeans 7.4 with hibernate 3.6.10 . I was dealing with the same issue. Whene I do a Ctrl + Space in order to get the documentation about Hibernate function, It's give me the following :

Javadoc not found. Either Javadoc documentation for this item does not exist or there is no attached Javadoc to the JAR file containing this item:E:\Programs\NetBeans 7.4\java\modules\ext\hibernate\hibernate-core-3.6.10.Final.jar

To solve it, I've downloaded the source hibernate-core-3.6.10.Final-sources.jar.zip from : http://www.java2s.com/Code/JarDownload/hibernate-core/hibernate-core-3.6.10.Final-sources.jar.zip and added it to my project libraries.

Finally I've got the documentation with Ctrl + Space shoortcut :).

在此输入图像描述

When you download your Hibernate version it comes in a war bundle. Extract that .war file and you will see the folder of Hibernate. In it there is a folder named documentation. Click on it and you will see the javadoc folder.

For configuring javadoc in NetBeans follow adeel ansari's answer.

First you have to download the library from sourceforge hibernate3 zip

  • Add The Jar from the library you downloaded not the one that comes with netbeans

  • And Then In Project

Right click Project -->properties-->Libraries-->select Hibernate Jar-->Edit -->

and browse the src folder and docs folder from dialog form the directory you have downloaded

image 1 image 2

I have been facing the same problem and a solution clicked to me.

1) Right click the project in the project window 2) go to the properties 3) select the Libraries node. 4) select the library and press edit. 5)go to the javadoc tab and click add url. 6) Paste http://docs.jboss.org/hibernate/orm/4.2/javadocs/ in the url window.

This is the link for the online Javadoc for Hibernate.

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