Automatically generate javadoc document in eclipse, eclipsejavadoc

Source: Internet
Author: User

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
  1. 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
    1. -Encoding UTF-8-charset UTF-8

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.