View the Java API help documentation in MyEclipse

Source: Internet
Author: User

 

Every time you reinstall or upgrade JDK, you forget how to associate myeclipse with the help documentation. Then, it will take another 10 minutes to search again on Google!

First, download the javadoc API help documentation. Just search for it by Google.

Myeclipse:

1. Open preference: window-perferences

2. Locate JRE: Java-installed jres and select the existing JRE or JDK you want to add Java APIs to (if you have multiple JRE and JDK ).

3. Edit attributes: Click Edit on the right. The edit JRE dialog box appears. If you are creating a new JRE, the new JRE dialog box appears. A column of jar packages will appear below, such as X:/program files/Java/(JRE/JDK version)/JRE/lib/RT. jar. Click Select the Rt. jar package, and then click javadoc location on the right.

4. Enter the Java API location. The javadoc URL is the network address of the Java API or the address after the local javadoc is decompressed. I use the javadoc URL method and it is recommended! Note: when entering the javadoc location path, you must write it to HTML/zh_cn/API/, that is, to the API layer; otherwise, it will not succeed! See:

Javadoc in archive is the address of the local javadoc package downloaded. Then, in path within archive, fill in the structure of the API inside the compressed package, which is generally docs/API, you can also use browse to import data more conveniently.

5. Try to write a few pieces of code in eclipse, and click the class or method name of the API you want to query, F1, can you quickly locate help?

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.