? This article mainly introduces the method of automatic generation of Javadoc documents in Eclipse, it is a practical technique for practical Eclipse to develop Java program, it has some reference value for the development of Java project, the friends who need can refer to the following
This example describes how to automatically generate Javadoc documents in Eclipse. Share to everyone for your reference. Here's how:
There are three main ways to use Eclipse to generate documents (Javadoc):
1. In the project list, right-click, select Export, and then in the Export dialog box, select Javadoc under Java to submit to the next step.
There are two places to note in the Javadoc Generation dialog box:
Javadoc command: The bin/javadoc.exe of the JDK should be selected
Destination: To create a saved path for a document, you can choose freely.
Press Finish to submit to start generating the document.
2. Choose from the menu: File->export (export with file),
The rest of the steps are the same as the first method.
3. Select the project you want to generate the document in, then select it from the menu,
Project->generate Javadoc directly into the Javadoc Generation dialog, the remaining steps are the same as the first method at the beginning of the Javadoc Generation dialog box.
Either way, but there are a few things to consider:
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 is
.; %java_home\lib\dt.jar;%java_home%\lib\tool.jar, the solution is to remove classpath or refer to the official documentation http://maven.apache.org/plugins/ Maven-javadoc-plugin/faq.html.
2, the generation of document garbled problem. Perfecting the Api-doc, when generating Javadoc with Eclipse, the "non-mapped characters encoded GBK" is actually a character encoding problem. Open Eclipse,project, Generate Javadoc A selection of items you want to output Javadoc, add the following code to the VM Setup line in the last step
-encoding Utf-8-charset Utf-8
Ways to automatically generate Javadoc documents in eclipse