Question

I'm using the Android Developer Tools wrapper of Eclipse, and the EGit git plugin for Eclipse. I'm having a problem where I'm generating Javadoc, but I can't find it in the package explorer.

I go to Project->Generate Javadoc.

I'm using C:\Program Files\Java\jdk1.7.0_51\bin\javadoc.exe as my Javadoc command, and I select the package I want to generate Javadoc for.

I select the standard doclet with the following destination, where ReverseSentence is my package. C:\Users\myname\workspace\ReverseSentence\doc

I check "open generated index file in browser", and generate the javadoc. It generates the Javadoc with no errors, and the index shows up in the main section of eclipse. However, the files don't show up in the package explorer.

I searched in the workspace through opening up the folder, and inside workspace\ReverseSentence there is a folder doc, which contains the proper Javadoc. However it isn't showing up in the package explorer.

How do I make it show up in the package explorer? When I used the regular version of Eclipse in the past (not the android developer tools wrapper), the Javadocs showed up there automatically.

What I've tried:

  • refreshing the project

  • closing and restarting eclipse

  • generating the Javadoc with an older version of the Javadoc command, which was what I was using in the other version of eclipse last time it worked (jdk1.6.0_43)

  • deleting the doc folder, recreating it, then trying to generate the javadoc in it (it generated in it but did not show up)

  • unchecking the filters which hide some things in the package explorer, (as shown how to do here: How can I get Eclipse to show .* files?)

Was it helpful?

Solution

I think that the problem is the destination folder/directory for your Javadoc files once they are generated. I encountered this same problem and discovered (finally) that the Javadocs were getting sent to a different folder than my package files were in. They went to the workspace folder I thought held all of my code also, but the code was going into a different repository. Maybe try looking for your code's location and then seeing if the generated Javadocs are landing somewhere else when they are generated. If this is the case, then the fix is to regenerate and send to the code's directory. This way, Package Explorer should be able to find and display them. Hope this helps!

OTHER TIPS

Did you try by refreshing the workspace or re-opening the eclipse !?

Check the filters in the settings of the explorer. If something does not show up, usually the filter hides it. The filter can be accessed in the drop down menu of Package Explorer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top