---
title: "将Java doc转换为chm的方法"
author: "holoblog"
date: "2011-11-05T16:47:00Z"
tags: []
slug: "java-doc-chm"
draft: false
lastmod: "2011-11-20T20:08:43Z"
id: 1268527
url: "https://holoblog.iteye.com/blog/1268527"
---

方法有很多，但是我选了一个比较方便的方法：

使用工具名称：jd2chm.exe

使用方法非常简单明了：

1.看到

Enter the Javadoc directory path:提示，只需要输入要转换的javadoc的目录即可；

2.Enter the project name (the CHM file name):提示，输入得到的chm的文件名；

3.Enter the project title (the CHM window title):提示，输入chm的标题；

4.Lanuage=0x804 Chinese (Simplified, PRC)? \[y/n]:提示，是否需要中文；

5.Render content font with Microsoft YaHei? \[y/n]:提示，是否需要雅黑字体；

6.Use the javadoc dir as working directory (CAUTION: the files will be modified)?\[y/n]:提示，chm的存放目录，只需要y即可；

接下来就完成了。非常方便；

参考文章：[http://www.blogjava.net/lishunli/archive/2010/01/07/308618.html](http://www.blogjava.net/lishunli/archive/2010/01/07/308618.html)