Automatically generate javadoc document in eclipse, eclipsejavadoc
There are three main methods to generate a document (javadoc) using eclipse:
1. Right-click the project list, select Export (Export), select javadoc under java in the Export (Export) dialog box, and submit it to the next step.
Note the following two points in the Javadoc Generation dialog box:
Javadoc command: Select jdk bin/javadoc.exe.
Destination: The Path to save the generated document.
Click finish to generate the document.
2. Select File> Export from the menu ),
The remaining steps are the same as the first method.
3. Select the project for which you want to generate the document, 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.
You can use either method, but pay attention to the following issues:
1. eclipse cannot be generated and an error is returned.
Java code
- Java. lang. IllegalArgumentException at sun.net. www. ParseUtil. decode
This is caused by setting java environment variables. For example, classpath is
.; % JAVA_HOME \ lib \ dt. jar; % JAVA_HOME % \ lib \ tool. jar, the solution is to delete classpath or refer to the official document http://maven.apache.org/plugins/maven-javadoc-plugin/faq.html.
2. Generating document garbled characters. Improve the api-doc. When using eclipse to generate javadoc, it is actually a character encoding problem when "inable characters of GBK encoding" occurs. Open eclipse, project-> Generate javadoc. Select the javadoc project and add the following code to the VM setting line in the last step.
Java code
- -Encoding UTF-8-charset UTF-8