JAVA-WEB development environment configuration

@ 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 Insert picture description here
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.
Insert picture description here
If you click on the startup.bat file and it crashes, the following situation appears in the input URL. The
Insert picture description here
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
Insert picture description here
** 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
Insert picture description here
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)
Insert picture description here
4. The basic steps of establishing a WEB application project

Insert picture description here
Create a web file
Insert picture description here
Click Next Others do not care by default, just remember to finally check the box below
Insert picture description here
Create JSP file
Insert picture description here
Write code
Insert picture description here
Run file The
Insert picture description here
most basic helloworld project is built ~

Published 3 original articles · Likes0 · Visits14

Guess you like

Origin blog.csdn.net/stude2/article/details/105459362