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?