MyEclipse configuring Tomcat, JDK, and publishing the first Web project

Source: Internet
Author: User

MyEclipse download and installation has been explained before, here is not much to say, the following directly into the topic

1) Add JDK Path
Menu (Main menu)->window (window)->preferences (preferences)->java->installed JREs (Installed JRE), click Add.

Browse the path of the JDK, click OK

2) Setting up the server
In the menu bar, select Window--Preferences ... (preference) "--" myeclipse "--" Servers "--" Tomcat "--tomcat6.x
Set the Tomcat server to "Enable" and set the "Tomcat Home directory" to the Tomcat6.0 installation directory, and the other directory options will be automatically generated.

Then select Tomcat6.x--jdk, and in the Tomcat JDK name, select the JDK that you added earlier.

3) Configure default encoding
is still the window in the menu bar--Preferences ... (preference) "--" general "--" content type (contents Types) "--" text ".
Then enter "UTF-8" in "Default encoding" and click "Update" to "Update" to "UTF-8" for "Java class files (Java Properties file)" and other character encodings.

4. New Project
New->web project, file, main menu

Right-click src--new--Package
Right-click Package--new--java Class
Right-click webroot--new--jsp

5. Publish Settings
Right-click the project name--myelipse--add and Remove project deployments, point to ADD

Select the tomcat6.x that you just configured in the server

Then the mouse selected tomcat6.x, point "redeploy" to publish, later engineering updates, also here to publish updates.

6. Start the Web service


7. Final view of running results

This address: http://bbs.it-home.org/thread-1087-1-1.html
Content Source: Programmer's Home (http://bbs.it-home.org/)

MyEclipse configuring Tomcat, JDK, and publishing the first Web project

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.