The use of Javadoc in Eclipse and the resolution of Chinese garbled characters

Source: Internet
Author: User

when usingEclipseThere is a very handy feature to use when,that's automatic generation .Javadoc,but in the actual use of the process found,if not properly configured,will cause the generatedDocThere is a garbled text in the file.

Solve the problem following the study :

      1, select " generate javadoc" command

       or in the project right-click menu Select export >>> " build javadoc "


2, it will open . Javadoc Wizards .

Configure yourself javadoc.exe location of the command Span style= "LINE-HEIGHT:28PX; font-size:14px "> < Span style= "COLOR: #00CCFF" > generate javadoc .

To select the need to output javadoc source file

Select an access rule for the output member ( public, Protected, Pakcage, private )
Span style= "LINE-HEIGHT:28PX; font-size:14px "> select < Span style= "COLOR: #00CCFF" >javadoc

3, then the next step is to enter the following interface ,

Enter a title and some options ,

Select link to referenced documents and items, you can uncheck
Select a style sheet, you can uncheck

4,the next step is to move on to the most important,hehe,is to setJavadocthe additional command options,

Set javadoc command-line arguments, which must be consistent with the code's character set, Otherwise the output of the Chinese will appear garbled

You can also set the description information HTML file



Oh, the final result is as follows


Good, there is no garbled Chinese, but also can be directly linked to my OpenCms document, the best is in eclipse can be directly viewed through F1 code-related javadoc!

The use of Javadoc in Eclipse and the resolution of Chinese garbled characters

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.