Generate Javadoc in Eclipse


Eclipse Java EE IDE Helios R1

JDK 1.6.0_22


Step1: Project->Generate Javadoc…

Step2: Select projects and method types which need to be generated Javadoc.

Step3: Select the destination of the Javadoc.

Step4: Configure Javadoc arguments.

In extra Javadoc options, enter “-encoding utf-8 -charset utf-8”.

因為OS為MS950但程式的編碼為UTF-8. 如果沒有指定編碼, 中文字的部分會出現unmappable character for encoding MS950的Error.

Step5: Finish.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s