The examples in this article describe the ways in which you automatically generate Javadoc documents in Eclipse. Share to everyone for your reference. The specific methods are as follows:
There are three main ways to use Eclipse to generate documentation (JAVADOC):
1. Right-click in the list of items, select Export, and then select Javadoc under Java in the Export dialog box to submit to the next step.
There are two places to note in the Javadoc Generation dialog box:
Javadoc command: You should select the JDK Bin/javadoc.exe
Destination: For the save path of the generated document, it is free to choose.
Submit to finish (finish) to start building the document.
2. Menu selection: File->export (file-> export),
The rest of the steps are the same as the first method.
3. Select the items that you want to generate the document, and then use the menu to select
Project->generate Javadoc goes directly into the Javadoc Generation dialog box, and the remaining steps are the same as the first method at the Javadoc Generation dialog box.
Either way, but pay attention to a few questions:
1, eclipse can not generate, error:
Java.lang.IllegalArgumentException at Sun.net.www.ParseUtil.decode
, which is caused by setting the Java environment variable. For example Classpath for
.; %java_home\lib\dt.jar;%java_home%\lib\tool.jar, the solution is to remove classpath or refer to the official document http://maven.apache.org/plugins/ Maven-javadoc-plugin/faq.html.
2, generate the document garbled problem. Perfecting Api-doc, when generating Javadoc with Eclipse, "coded GBK characters" is actually a character encoding problem. Open Eclipse,project-> Generate Javadoc an item that you want to output Javadoc, the last step is to add the following code to the VM Setup line
Copy Code code as follows:
-encoding Utf-8-charset Utf-8
I hope this article will help you with your Java programming.