kadhirvel
kadhirvel

Reputation: 470

Error in using generate javadoc for android project in eclipse

I have tried many solution available but unable to create javadoc for my android project. checked out the following: solution 1 solution 2

but i got the following error Building tree for all the packages and classes...

java.lang.NullPointerException
at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:83)
at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:44)
at com.sun.tools.javadoc.ClassDocImpl.superclassType(ClassDocImpl.java:496).....

Also tried ant command tool ant -f javadoc.xml

But no output on console last output is null pointer exception and "BUILD SUCCESSFUL" but no files generated in dest folder...

Upvotes: 0

Views: 1363

Answers (2)

krishna5688
krishna5688

Reputation: 1180

If you want to create java doc from eclipse, add android.jar in lib folder of your project. And then go to Project .. Generate javadoc. This worked for me.

Upvotes: 0

kadhirvel
kadhirvel

Reputation: 470

I got the solution

adding the following lines to the javadoc.xml worked for me

classpath="D:\AndroidEclipse\android-sdks\platforms\android-8\android.jar;libs/GraphView-3.0.jar.....

I just added path of the android.jar file and executed the ant -f javadoc.xml command and my documentation has been created

Upvotes: 2

Related Questions