1.JDK Download and Installation
1.1 Download the latest JDK version on the Web site: http://javase/downloads/index.jsp website
1.2 Install the JDK, double-click the downloaded. exe file to run, generally by default installed on the C drive, the installation completed directory in C:\Program Files (x86) \java,
Then there are jdk1.6.0_2 and jre6 two subdirectories in this directory. They store Java's operating environment and development environment respectively.
1.3 also set the environment variables, with myeclipse words are self-brought (in the "Computer-Properties-Advanced system settings-environment variables-
Locate the path where you added the Java installation "This is my C:\Program Files (x86) \java)
installation and configuration of 2.Tomact servers
2.1 tomact Download http://tomcat.apache.org Download the latest version, click the. exe file to launch the Tomact installation file,
Follow the wizard and hold down next to automatically complete the Tomcat installation, note that the installation path "C:\Program Files (x86) \java" is set here.
Do not set its default path, set to default installation (port number: 8080, username: admin, password: null)
Finally choose the installation, you can complete the Tomcat installation, after the installation is complete, the "Start-Programs-" menu will add appche Tomcat6.0 menu group.
2.2 Testing Tomcat
Open IE Browser, enter http://localhost:8080 or http://127.0.0.1:8080 in the address bar
(both localhost:8080 and 127.0.0.1 represent the local browser, and 8080 is the port number of the default listener for Tomcat), which will open the default home page for Tomcat.
2.3 Tomcat's directory structure
The Tomcat installation directory has
/bin: Storing command files to start and close Tomcat
/conf: A configuration file that stores tomcat, such as Server.xml,web.xml
/lib: A jar file that can be accessed by the Tomcat server and all Web applications
/log: Log file that holds Tomcat
/temp: Storing temporary files generated by Tomcat runtime
/webapps: Usually place directories and files of Web applications in this directory
/work:tomcat Place JSP-generated servlet source files and bytecode files in this directory
Note: For developing javaweb applications, after deployment, their applications are placed under directory/webapps with a certain directory structure
9.16 Java WEB Application development environment and development tools (update)