Configure JSP + mysql.txt

xiaoxiao2021-03-06  41

Install the JSP development environment with JDBC for MySQL (I am configured in 2000) Install the Java Development Kit to install the Java development environment, the only need to operate, choose the installation directory, here it is assumed to be installed in the C: /JDK1.4.1 directory . Then set an environment variable. In WIN NT or WIN 2000, you can choose "My Computer", right-click order, select "Properties", pop up the System Features dialog box, select "Advanced", then click "Environment Variable", you can edit the system The environment variable.

The following statement is added: set the path path =% path%; c: /jdk1.4.1; c: /jdk1.3/bin Set the Java environment variable set classpath = c: /jdk1.4.1/lib/tools.jar; C : /jdk1.4.1/lib/dt.jar; Set Java Home Directory Set Java_Home = C: /JDK1.4.1 Install Tomcat 5.0.19 Install Tomcat 5.0.19 relatively simple, directly release jakarta-tomcat.zip to C: / Tomcat can be set, then the environment variable is set, add the following statement:

Set path path =% path%; c: / tomcat set Tomcat environment variable set classpath = c: / tomcat / common / class; c: / tomcat / common / lib;% classpath set Tomcat's primary home directory set tomcat_home = C: / Tomcat copies the Tools.jar in c: /jdk1.4.1/lib/tools.jar to C: / Tomcat / Common / LIB and sets ClassPath c: /tomcat/common/lib/tools.jar Install MySQL Database Management The system runs setup, select the installation directory and installation mode according to the installation wizard, the system will complete the installation. Here, it is assumed to be installed in the C: / MySQL directory. Install JDBC for MySQL Select 1: Install MySQL JDBC driver, extract mm.mysql-2.0.4-bin.jar to C: / under, automatically generate a directory of mm.mysql.jdbc-1.2b, and set the environment Variable: Set the mysql.jdbc environment variable (set classpath = c: /mm.mysql-2.0.4-bin.jar;% classpath) Select 2 (recommended) to drive mm.mysql-2.0.4-bin.jar C: / Tomcat / Common / LIB Sets ClassPath C: / Tomcat/common/lib/mm.mysql-2.0.4-bin.jar Restart, all installations are all OK!

Finally, put your own conlaw class in Web-INF / CLASSES / LAW, the program can run.

Other Note: There is a source file of conlaw under web-inf / class / lawx. You can visit your database server on my machine, but I can't invade on your Web server, can you give certain help? !

转载请注明原文地址:https://www.9cbs.com/read-74684.html

New Post(0)