How to build a Java EE development environment under Windows?

Source: Internet
Author: User
Tags mysql version variable java web tomcat
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.



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.