How can I add Java documentation to a .JAR file so that when people are using my JAR file and type ‘.’ Eclipse will display the documentation for the available API’s (intellisense).
MORE INFO
I have java doc created but when I export the jar file it does not contain intellisense when used in other projects. This is what I am having trouble with.
UPDATE
The intellisense only shows up if the export the source. However I want to hide the source code. How can I get around this?
If you don’t want to include the entire source code with your .jar, you can zip/jar up just the javadocs (however you generate them.. I do it using the Project->Generate Javadoc menu option in Eclipse). An end user can then “attach” them to the referenced library in the project build path settings.
The javadoc location attribute of a project library can be a URL, a local directory or a local archive file.
After noticing your edits, I might want to mention that Ant has a javadoc task that can generate your javadocs during a build.