Ways to automatically generate Javadoc documents in Eclipse _java

Source: Internet
Author: User

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.

Related Article

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.