Jsp + tomcat + mysql & amp; sevlet & amp; javabean configuration process

Source: Internet
Author: User


Many problems may occur when configuring the jsp development environment. Thanks to the experiences of many predecessors on the internet, the author cl41's JSP connection to the Mysql database strategy and the author's Saulzy's MySQL study notes and other articles are just for me to send carbon in the snow. In order to help beginners like me, I have summarized many of my experiences here, I am very grateful for their selfless dedication and hope that more people will carry forward this spirit!
If the following software download link cannot be displayed, please download it from the official website!

Software Download
Mysql
Download: mysql-4.1.13-win32.zip (Windows downloads)
Http://dev.mysql.com/downloads/mysql/4.1.html
JDBC driver
Download version: mysql-connector-java-3.1.10.zip
Http://dev.mysql.com/downloads/connector/j/3.1.html
Download j2sdk
Download version: jdk-1_5_0_04-windows-i586-p.exe
Http://java.sun.com/j2se/1.5.0/download.jsp
Download tomcat
Download version: jakarta-tomcat-5.5.9.exe
Http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
Install and configure j2sdk:
Run the j2sdk installer and install it according to the default settings. You can also customize the path, but you need to modify the following configuration.
Configure j2sdk:
Configure environment variables:
Choose my computer> Properties> advanced> environment variables> system variables to add the following environment variables:
JAVA_HOME = C: Program FilesJavajdk1.5.0 _ 04
CLASSPATH = % JAVA_HOME % libdt. jar; % JAVA_HOME % libools. jar;
Path = % JAVA_HOME % in; % SystemRoot % system32; % SystemRoot % System32Wbem
Write a simple java program to test whether J2SDK has been installed successfully:
Public class hello
{
Public static void main (String args [])
{
System. out. println ("Hello ");
}
}
Save the program as a file named hello. java.
Open the Command Prompt window, go to the directory where hello. java is located, and type the following command
Javac hello. java
Java hello
If "hello" is printed, the installation is successful. If "hello" is not printed, check whether the preceding configuration is correct.
Note that "Hide extensions of known file types" is not checked in the system folder option (my computer-tools-view)
Install and configure tomcat
Run the tomcat installation program and install it according to the default settings. You can also customize the path, but you need to modify the following configuration.
My computer> Properties> advanced> environment variables> system variables Add the following environment variables

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.