1. Download
First, select the version suitable for your operating system from the Eclipse official website (here) and download the Eclipse IDE for Java EE Developers package. This article uses Eclipse Juno (4.2) (here ).
2. Installation
Decompress the downloaded zip package to the installation directory. The installation directory has no special requirements. We recommend that the directory path contain no space characters, such as C: \ Storage \ Programs, the decompressed directory is C: \ Storage \ Programs \ eclipse-jee-juno-sr2-win32-x86_64, And the eclipse.exe is running in the double directory.
3. Set 3.1 encoding settings
All files in the project use UTF-8 encoding to allow both Chinese and Japanese languages to be input in various files in the project. You need to set Eclipse as follows:
3.1.1 general settings of file encoding
A) Select Preferences from the menu Window to open the Preferences Window, enter Workspace in the filter input bar, and select the Workspace node under General.
B) change the value of Text file encoding to Other (UTF-8), such:
C) (optional) change the value of the New text file line delimiter item to Other (Unix )].
D) Click OK to complete this setting.
3.1.2 Content Types settings
A) Select Preferences from the menu Window to open the Preferences Window, enter Content Types in the filter input column, and select the Content Types node under General.
B) Expand the Text node in Content types and select the Java Properties File node under it. Set Default encoding to UTF-8, for example:
C) Click the Update button to apply settings.
D) Select the JSP node in Content types and set Default encoding to UTF-8, such:
E) Click the Update button to apply settings.
F) Click OK to complete this setting.
3.1.3 Web File Settings
A) Select Preferences from the menu Window to open the Preferences Window. In the left pane, locate Web and select CSS Files ], keep the CSS Files Node Selected and set Encoding to ISO 10646/Unicode (UTF-8) On the right side, such:
B) Click Apply to Apply settings.
C) Select HTML Files to keep the HTML Files Node Selected and set Encoding to ISO 10646/Unicode (UTF-8) on the Right, such:
D) Click Apply to Apply settings.
E) Select JSP Files to keep the JSP Files Node Selected and set Encoding to ISO 10646/Unicode (UTF-8) on the Right, such:
F) Click Apply to Apply settings.
G) Click OK to complete the settings.
3.2 configure Tomcat
A) Select Preferences from the menu Window to open the Preferences Window, enter Runtime Environments in the filter input column, and select the Runtime Environments node under Server, for example:
B) Click Add.... In the displayed window, select Appche Tomcat 7.0 under the Appche node.
C) Click "Next>" and click "Browse..." in the pop-up window... ], select the installation directory of Tomcat 7.0 (for Tomcat installation, refer to this article). My installation directory is C: \ Storage \ Programs \ apache-tomcat-7.0.34.
D) Click Finish to complete Tomcat settings.
E) Click OK in the Preference window to exit the setting interface.