Java WEB Environment Setup Steps
- Install the corresponding version of the JDK
- Configuring Environment variables
I installed the path is C drive, add C:\Program files\java\jdk1.8.0_65\bin in Path
Test configuration succeeded, cmd input javac, display the following interface:
- Installing Tomcat
I installed the version is 7.0. version
- Test whether the installation is successful, enter http://localhost:8080/in the browser
Display, for example, indicates a successful installation.
5. Start the Tomcat server in eclipse
1) First, select the preferences below the window
2) Locate the runtime environment below the server and click the Add button on the right
3) Choose the same version of Tomcat that you installed
4) Set up the Tomcat installation directory
5) Successful Installation
6. Create a Javaweb program and choose New----Dynamic Web Project
7. How to publish a Web program in Elipse
1) Click Sever, right click on new---Server
2) Select Next and click Add to Project
3) Start Tomcat
4) testing in the browser
http://localhost:8080/lp/main.jsp
Java WEB Environment Setup steps (ultra-detailed, including pre-installation steps)