Windows Jsp+mysql Web Site environment Configuration method 1th/2 page _win server

Source: Internet
Author: User
Database with MySQL (configuration process If you have a problem can restart Tomcat try it)
First, download software
. J2se
Http://java.sun.com/j2se/.4.2/download.html
2.Tomcat Server
http://tomcat.apache.org/download-4.cgi
3.mysql Server
Http://dev.mysql.com/downloads/mysql/5.0.html
Character Set selection Latin (should be the same as the database using the character set)
After the database is installed, use the command to see what character set the database uses:
Help
4.JDBC Drive
Http://dev.mysql.com/downloads/connector/j/5.0.html
Second, install the above software in sequence
Suppose the following installation path is as follows:
. J2se
C:\j2sdk.4.2
2.Tomcat
C:\Program Files\apache Software foundation\tomcat 4.
3.mysql
C:\Program Files\mysql\mysql Server 5.0
Third, the configuration
. Set Environment variables
Right-click on ' My Computer ', attribute-> advanced-> environment variable, add the following variable:
path=%path%; C:\j2sdk.4.2\bin; C:\Program Files\mysql\mysql Server 5.0\bin
java_home=c:\j2sdk.4.2
Classpath=c:\j2sdk.4.2\lib\tools.jar;mysql-connector-java-5.0.5-bin.jar;mysql-connector-java-5.0.5-bin-g.jar
Tomcat_home=c:\program Files\apache Software foundation\tomcat 4.
2.jsp connection MySQL Settings
Put
Mysql-connector-java-5.0.5-bin.jar
Mysql-connector-java-5.0.5-bin-g.jar
Copy to C:\j2sdk.4.2\lib
Put
Mysql-connector-java-5.0.5-bin.jar
Copy to
C:\Program Files\apache Software Foundation\tomcat 4.\common\lib
C:\Program Files\apache Software Foundation\tomcat 4.\shared\lib
(Don't copy Mysql-connector-java-5.0.5-bin-g.jar)
Current 1/2 page 12 Next read the full text

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.