Seamlessly connect Eclipse and JAVA-DOCS-API Chinese documents (reprint)

Source: Internet
Author: User

With the beginning of full contact with Javaapi, now a Chinese version of the Javaapi document (Java-docs-api-cn.zip), in the process of writing code needs to be frequently consulted. However, even the <alt>+tab will soon make you feel that switching between Eclipse and Java-docs two windows is a very annoying thing. What's more, even if you open the document window, you will need to follow the index step by look for the required packages and classes, even if there are <ctrl>+f, the number of repetitions can also make you patience. In recent classes, teachers have often "taught" us that programmers are always the "lazy" ones. Then I'll take the "lazy spirit" to the end of it ~ ~ (nonsense finished)

The scenario described above makes me wonder: If I could embed the JAVA-DOCS-API document inside Eclipse. Go home Google the relevant keywords, the original really can. By following these simple steps, you can combine the two perfectly:

1, download the Java-docs-api-cn.zip Chinese document compression package. Attention! Cannot be a "compiled HTML Help file" format, and do not unzip it.
2. Start eclipse--> [Window] Menu--Preferences-click Installedjres under Java Properties on the left side of the dialog box to select Jdk1.5.0_ in the right list 06, then click the Edit button on the right to open the Edit JRE dialog box and select C:\java\jdk1.5.0_06\jre\lib\ in the JRE systemlibraries list Rt.jar, click the Javadoclocation button on the right, and in the popup dialog box, select Javadoc in Archive, Set the Archivepath to the path of the Java-docs-api-cn.zip Chinese document in your machine, and finally locate the path withinarchive in the API directory (such as DOCS\ZH\API) in the document archive.

With the above settings, the Javaapi Chinese document becomes the eclipse default "Chinese help", in the next process of writing code, you can double click the left mouse button to select any of the document's package name or class name, and then press the <F1> key, Eclipse will pop up the Help window and automatically navigate to the content you want to reference, completely eliminating the hassle of manual search. Since then, the world under eclipse has become more beautiful ~~~o (∩_∩) O

http://fenglin07.blog.163.com/blog/static/31517026201021710833575/

Reference: http://www.talentdigger.cn/home/space.php?uid=3618&do=blog&id=8611

======================================================================================

Using the Chinese Java API documentation in Eclipse Sun's official Chinese version of the Java API document was published at: Http://gceclub.sun.com.cn/download/Java_Docs/html_zh_CN.zip, After downloading, please refer to the following steps to use with eclipse3.1
1. Click menu < windows >->< Settings >
2. Click < installed jre> in the list of items on the left
3. Select the JRE5.0 you have installed, click Edit on the right
4. Click the plus sign "+" on the left side of Rt.jar in the Library list below the dialog to expand the Rt.jar configuration
5. Select the second item, JAVADOC location, click Edit on the right, and if the edit on the right is gray, deselect the "Use default system library" check box on the top of the library list, using the libraries.
6. In the pop-up object box, the top is using the extracted files to help, the following use uncompressed compression package help.
7. We use the uncompressed package, select the JavaDoc in Archive below.
8. Need to enter two content, one is the location of the compressed package (Archive Path), you can choose the right navigation selection, the second is the compressed package inside the path (paht within Archive), you can also use the right navigation to select, until the API folder. After completion, there is a Test button (validate) below the browse to check.
9. When finished, make sure to close.
Now, in the Java editor to select a system method, press F1 can see the Help window corresponding to the Javadoc Help portal, click, you can directly see the corresponding JAVAAPI Doc.

1, the JDK (5.0) document has been completely Chinese, can be in the Sun China technology community to obtain the compression package Html_zh_cn.zip

Location:http://gceclub.sun.com.cn/chinese_java_docs.html

Unzip the compressed package to the specified path. such as L:\Java_api_docs_CN\api

Of course, if the level of English can be, it is recommended to use more English documents. You can use Chinese as a reference when encountering a place that is not easy to understand.

English Document location: Javadoc

https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/[email protected]_ SMI

2. Specify the location of the JDK help document in eclipse. Open Eclipse menu-window-perferances Open as:

Make the following settings: Edit JRE---Edit the location of the Javadoc. You can set the Help document location in Chinese or English as needed.

After setting,

Select the API you need to know and press F1to open the IE help page embedded in eclipse in the right-hand box.

Also, under Eclipse, press shift+f2 to invoke the browser with the required API details help

Http://yulimeander.blog.sohu.com/118042260.html

Reprinted from Beter's blog

Seamlessly connect Eclipse and JAVA-DOCS-API Chinese documents (reprint)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.