@ JAVA-WEB development environment configuration
When configuring the Java web development environment, you will encounter a variety of small problems, such as the wrong path of the environment variable, the software version is not right, etc., you need to find the problem yourself, use the network to collect information, and then solve it At the same time, you can also be familiar with the operation of various software, which is conducive to mastering knowledge.
1.
Everyone should have learned the Java language before installing the JDK. You can download the JDK on the official website. Use the CMD to view the version as follows: It
will not be expanded here
. 2. Install the tomcat 7.0
official website to download. You can choose a different version. I am the Win10
port.
Verify that the installation is successful: Open the startup.bat and the
following content appears.
If you click on the startup.bat file and it crashes, the following situation appears in the input URL. The
reason may be that when you start tomcat, you need to read environment variables and configuration information, which is missing , You can't register environment variables, causing tomcat crash.
Pay attention to the configuration of environment variables
** Solution: ** Add the following two lines at the beginning of the two files startup.bat and shutdown.bat:
SET JAVA_HOME = D: \ Java \ jdk1.8.0_221 (java jdk directory)
SET TOMCAT_HOME = E: \ tomcat7.0 (tomcat file directory after decompression)
after modification, click the startup.bat file to start tomcat
Open the browser, type http: // localhost: 8080, the page appears to indicate that the installation was successful
3. eclipse installation
My Eclipse was installed before, but there is no web development environment configured, so based on the original software, download the plug-in . (If it is not installed, you can download a 64-bit version of eclipse with j2ee configuration on the official website)
4. The basic steps of establishing a WEB application project
Create a web file
Click Next Others do not care by default, just remember to finally check the box below
Create JSP file
Write code
Run file The
most basic helloworld project is built ~