Install and set the Chinese Language Pack for eclipse

Source: Internet
Author: User

The Chinese development environment can effectively improve the learning efficiency and facilitate quick learning for beginners. However, it is necessary for the current technical environment to learn English, to a certain extent, eclipse should be developed in an English environment for further study and understanding. Next let's learn how to install language packs for eclipse and set up Chinese documents.

 

Preparation

Install eclipse at http://www.eclipse.org/downloads/before starting all the work /.

Language Pack (corresponding to your own eclipse version): http://www.eclipse.org/babel/downloads.php

English DOC: http://dlc.sun.com.edgesuite.net/jdk/jdk-api-localizations/jdk-api-zh-cn/publish/1.6.0/html_zh_CN.zip

 

1. Install the Chinese Language Pack

All the extension functions of eclipse are added in the form of plug-ins. There are multiple forms when installing plug-ins. Below are two commonly used:

  • Directly copy the files in the plug-in to the eclipse directory. The advantage is that it is easy to install, but the disadvantage is that the number of plug-ins increases, which may be difficult to uninstall and update.
  • One method of using link. The advantage is that it is easier to manage plug-ins, but the disadvantage is that the operation is more complicated than the first method.

 

1.1 copy the plug-in file directly to the corresponding eclipse extension directory

Open eclipseProgramDirectory. We can see two folders:FeaturesAndPlugins,

After extracting the Chinese Language Pack, you can see that there are two directories with the same name as the preceding directory. copy the files in these two directories to the corresponding directory of Eclipse.

Run eclipse again:

 

1.2 use the links directory unified management plug-in

1.2.1 create a folder for storing plug-ins in the eclipse main directory. The file name does not conflict with the folder name in the directory. Here I create a: extensions Folder:

1.2.2 decompress the plug-in and directly copy it to the "extensions" directory:

 

1.2.3 Add the links folder to the eclipse home directory

Create a folder named: links in the main directory of Eclipse, which is a standard directory of eclipse. When eclipse is started, it will read the content in advance. We can add the plug-in link in it, so that eclipse can read and load the plug-in corresponding to the link.

1.2.4 Add the link file of the plug-in to the links folder

Add a Suffix in the links Folder :. the link text file can be directly named as the plug-in directory name (which can be any). use NotePad to open the link file and enter the text:

 
Path = extensions \ BabelLanguagePack-eclipse-zh_4.2.0.v20121120043402 \ This is the relative path of the plug-in (you can use an absolute path)

1.2.5 restart eclipse

 

1.3 switch back to English environment eclipse

What should we do if we want to switch back to the English development environment by using a Chinese development environment and a general understanding of eclipse? In fact, you do not need to delete the Chinese package. You can use the command line to enter the eclipse main directory and enter:

 
Eclipse-nl en

 

2. Set the Chinese DOC and view the source code in eclipse

In addition to setting up the Chinese API documentation, unlike. net, we can also directly view the source code of the Java class library in eclipse. After downloading the Chinese javadoc document, there is any path. Open eclipse, select "Preferences" --> "installed JRE", and select a JRE version --> "edit ", as follows:

Note:

You cannot set the source code or set the Chinese DOC at the same time. If you set the source code, javadoc will automatically reference the comments in the source code and the setting of the Chinese DOC will be invalid.

 

2.1 Add a Java Class Library Link

Select "Rt. Jar" package -->"Source codeLink "-->" SourceCodeAttachment"

 

Select the src.zip file under the JDK installation root directory:

 

After completing the above steps, if you want to see the implementation of a function, You need to press and hold the "Ctrl" key and click the mouse:

2.2 add Chinese javadoc Link

Select "Rt. Jar" package --> "javadoc location" --> "javadoc location"

 

Select the javadoc in the archive, so that you do not need to decompress the file. Select the following Chinese javadoc path in the archive path, and select the "API" Level in the archive path:

 

Eclipse has started to use Chinese DOC:

Tip: If you want to use a Chinese Doc, you need to remove the path for viewing the source code, as shown below:

 

Download Chinese package resources (eclipse version 4.2.0 or later)

Chinese Language Pack: Click to download (copy the two folders to the eclipse main directory after the download)

 

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.