Because the company project needs the participation of Java EE, in recent days concentrate on studying the Java EE. Today, I have a hard time to make a summary of the work and learning of these days: Based on Java Web application Development (EE), the current most popular environment collocation is Mtec (MYSQL,TOMCAT,ECLIPSE,CVS) I highlight some of the problems that JDK and Tomcat have encountered in configuration and their solutions:
Because the company project needs the participation of Java EE, in recent days concentrate on studying the Java EE.
Today is a rare day to take a look at the work and study these days summed up as follows:
Java web based application development (EE), the current most popular environmental collocation is Mtec (MySQL,Tomcat,Eclipse, CVS)
I highlight some of the problems that JDK and Tomcat have encountered in configuration and their solutions:
First, JDK configuration:
1, set the Java_home variable to Java's home directory c:\jdk1.5.0_06:
$JAVA _home=c:\jdk1.5.0_06; JDK Installation path
2, add Java Bin directory path c:\jdk1.5.0_06\bin to the PATH environment variable
$PATH =c:\jdk1.5.0_06\bin;
Test Java Environment: Enter command Prompt (start-> run-> input cmd), enter command java-version
To see if the version is correct
Enter JAVAC-HELP to see if the prompts are correct, and if the prompt is "not an internal or external command, nor a running program or batch file," The path path is not set.
Second, tomcat configuration:
Set environment variable: $TOMCAT _home=c:\tomcat5.5; Tomcat Path
Install tomcat default port is 8080 if you need to change it to something else (e.g. 80, etc.)
Open File Conf/server.xml, find
<connector port= "8080″maxhttpheadersize=" 8192″
maxthreads= "150″minsparethreads=" 25″maxsparethreads= "75″
Enablelookups= "false" redirectport= "8443″acceptcount=" 100″
Connectiontimeout= "20000″disableuploadtimeout=" true "/>
Change the 8080 to the port you need.