Beginner in Java Web, build a development environment (eclipse + Tomcat + MySQL)

Source: Internet
Author: User
Tags file copy
From: http://blog.csdn.net/hongchangfirst
This section describes how to configure WTP and tomcat plug-ins in eclipse and connect to MySQL. After decompressing eclipse, You need to download WTP (web tools platform) for web development. Because the downloaded eclipse is a Standard Edition, it does not include the plug-ins required for web engineering development, the simplest installation method is to install the WTP plug-in online. After downloading the WTP plug-in, installation is prone to errors. The online installation method is as follows: 1) Start eclipse and select help> install new software. 2) select available software sites, find http://download.eclipse.org/webtools/updates, and enable it. 3) Select http://download.eclipse.org/webtools/updatesin the address bar. 4) Check "web tools platform (WTP) 3.1.2" and then download and install it. This process is really slow enough. After the installation is complete, you will be prompted to restart. To enable and disable tomcat in eclipse, you can download a tomcat plugin plug-in. The latest version is: tomcatpluginv321.zip: http://ishare.iask.sina.com.cn/f/12294480.html? After downloading from = like & retcode = 0, extract the file and. sysdeo. eclipse. tomcat_3.2.1 put it in the eclipse plugins folder, or use the more advanced link method. I will not go into details here. Restart eclipse and find that there are three more kitten icons in the eclipse toolbar, then you need to associate Tomcat with eclipse. 1) choose windows> preferences> tomcat. 2) Select tomcat, set the version to Tomcat 6.x, and specify "Tomcat home" to the installation directory of Tomcat. 3) Expand the Tomcat node and select "Advances" to specify the Tomcat base to the tomcat installation directory. 4) Expand JVM settings and set "JRE" to "JDK. If you click the kitten icon to start Tomcat, if the following words appear on the console: 15:43:26 org. Apache. Catalina. startup. Catalina start information: server startup in 2079 MS, the Association is successful. After successful installation of MySQL, in order to make our web application can connect to the database, you need to download a MySQL-connector,: Taobao mysql-connector-java-5.0.8-bin.jar this file copy to Tomcat installation directory lib folder. To be able to build servlet in the project, you need to add the servlet-api.jar (this file is under the Lib folder of the tomcat installation directory) to the Reference Library of Eclipse, the method is to select windows-> preferences-> JAVA-> installed JRE, select JRE, "edit", select Add external jar, add the servlet-api.jar. If your network speed is too low, you can download eclipse for J2EE directly on the eclipse official website. Here is a link: http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-javass/indigosr2.
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.