Web Development (Java)

Source: Internet
Author: User

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.

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.