1.JDK
https://www.oracle.com/cn/java/technologies/javase-jdk8-downloads.html
find the corresponding version download jdk
install jdk
configuration environment variables
create a new system variable JAVA_HOME: the variable value is to fill in the previous JDK installation path.
Find the Path option in the system variables [here taking Win10 as an example], after selecting Path, click Edit:
2. Install Tomcat
https://tomcat.apache.org/download-70.cgi and
unzip it to C:\Program Files\ Java
C:\Program Files\Java\apache-tomcat-7.0.100\bin
edit startup.bat shutdown.bat and
add two lines
SET JAVA_HOME = C:\Program Files\Java\jdk-11.0.2
SET CATALINA_HOME = C :\Program Files\Java\apache-tomcat-7.0.20
Open cmd and
enter cd C:\Program Files\Java\apache-tomcat-7.0.100\bin
and then enter service.bat install
as shown in the figure to show that the installation is successful
Java environment installation and configuration
Guess you like
Origin blog.csdn.net/weixin_42403632/article/details/104394569
Recommended
Ranking