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