Configure and create a web project under eclipse + myeclipse + Tomcat

Source: Internet
Author: User
1. EnvironmentEclipse SDK 3.2.0 myeclipse 5.1.0 ga Tomcat 5.5.9 JDK 1.5.0 _ 3 2. configuration method (since a Chinese Language Pack has been installed, the brackets are all original English names)1) Configure myeclipse to start eclipse. On the menu bar, choose "help"> "Sofware updates"> "manage configuration) "" Eclipse SDK "node right-click and choose" add "--" extension location... (extension location) "select the installation path of myeclipse and restart eclipse. A myeclipse option is added in the menu bar * If you use the myeclipse installation version and select the correct eclipse directory during the installation process, the above steps can be omitted, as the installation location of myeclipse already exists under the "Eclipse SDK" Node2) Configure Tomcat
Start eclipse and select "window" in the menu bar -- "preferences... (preference) "" myeclipse "--" application servers "--" Tomcat 5 "sets the Tomcat server to" enable ", set "Tomcat home directory" to the installation directory of Tomcat 5.5.9. Other DIRECTORY options will be automatically generated. 3) the default encoding is still "window" in the menu bar) "--" preferences... (preference) "" general "--" content types "--" text "and then in" default encoding) enter UTF-8, click Update to update the Java properties file and other character encodings as UTF-8" 3. Create and run a WEB Project1) create a project "new" -- "project" -- "myeclipse" -- "J2EE Projects" -- "Web project "... naming process omitted 2) create a servlet "new" -- "other" -- "myeclipse" -- "Web" -- "servlet "... (3) run the WEB Project and click "deploy myeclipse J2EE project to server" in the toolbar... "button," add "indicates that the current project is configured with server as" Tomcat 5 ". If it is successful, click another button on the right," run... myeclipse application servers "to start Tomcat. Open the browser and access the created servlet (the default servlet ing for servlet created by eclipse is" \ servlet \ Name ") # Java Column

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.