J2EE system configuration precautions

xiaoxiao2021-04-10  532

Javac JDBCDemo.java

Java -cp.;% classpath% JDBCDemo

Eclipse Java anti-compilation plugin

Java_home

C: / sun / appserver / jdk

Classpath

.;% Java_home% / lib / dt.jar;% java_home% / lib / tools.jar;% java_home% / jre / lib;% java_home% / jre / lib / ext;% java_home% / JRE / lib / rt.jar;% Tomcat_home% / common / lib / mysql-connector-java.jar;% Tomcat_Home% / CommON / lib

Path

% Java_home%;% java_home% / bin

Tomcat_home

E: /tomcat5.0

There should be mysql-connector-java.jar in Tomcat, so that database connections can be normal

In the mysql database, the command format of entering the database from the CMD side is as follows:

$: / mysql / bin / mysql -u root -p

PASSWORD: root

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

New Post(0)