when using eclipse for Java Program development, you always need to open a jdk1.5 CHM file at the same time, then open the eclipse help to find the API details. If JDK documentation can be displayed in eclipse help, it will be much easier. In particular, Sun China's technical community has translated the original English JDK documentation, which makes it even better. The method found on the Internet to embed the jdk api documentation into the eclipse help. The test was successful.
download the jdk1.5 help document:
Chinese version: http://gceclub.sun.com.cn/chinese_java_docs.html
English version: http://java.sun.com/javase/downloads/index.jsp
Create a directory org.sun.java.doc. sdk_1.5.0 under Eclipse/plugins/, and then create two files plugin. xml and TOC. xml under this directory.
Contents of the plugin. xml file:
<? XML version = "1.0" encoding = "UTF-8"?>
<? Eclipse version = "3.0"?>
<Plugin
Id = "org.sun.java.doc. SDK"
Name = "Java 2 SDK Doc"
Version = "1.5.0"
Provider-name = "sun.org">
<Requires>
<Import plugin = "org. Eclipse. Help"/>
</Requires>
<Extension point = "org. Eclipse. Help. TOC">
<TOC primary = "true" file = "toc. xml"/>
</Extension>
</Plugin>
TOC. xml file content:
<? XML version = "1.0" encoding = "UTF-8"?>
<? NLS type = "org. Eclipse. Help. TOC"?>
<TOC label = "Java 2 SDK Doc">
<Topic label = "API" href = "docs/API/index.html">
</Topic>
</TOC>
Rename the downloaded jdk-rj5_0-doc.zipfile to doc.zip and place it in the same directory as the two files you just created. The file name must be doc.zip. the ZIP file should have such a directory hierarchy: docs/API/index.html
Use eclipse-clean to restart eclipse.
Start eclipse and go to help contents to see j2sdk API.