There are three main methods to generate a document (javadoc) using eclipse: 1. Right-click the project list, select Export (Export), and select javadoc under java in the Export (Export) dialog box, submit to the next step. In the Javadoc Generation dialog box, there are two points to note: javadoc command: select the jdk bin/javadoc.exe destination: to save the path of the generated document. Click finish to generate the document. 2. Select File> Export from the menu. The remaining steps are the same as those in the first method. 3. Select the Project for which the document is to be generated and select from the menu. Project-> Generate Javadoc directly enters the Javadoc Generation dialog box, the remaining steps are the same as the first method in the Javadoc Generation dialog box. 1. Select a project and select project-> Generate javadoc.... The setting dialog box is displayed. Select jdk \ bin \ javadoc.exe for javadoc command, such as C: \ jdk1.6 \ bin \ javadoc.exe. You can set visibility by yourself. Generally, select public as the output path. 2. Click next. You do not need to set the next step. 3. Click next, and set the encoding in the extra javadoc options area. If not set, Chinese characters may contain garbled characters. If I am UTF-8, then the-encoding UTF-8-charset UTF-8 point finish can output java doc.