Java environment installation and configuration

1.JDK
https://www.oracle.com/cn/java/technologies/javase-jdk8-downloads.html
find the corresponding version download jdk
Insert picture description here
install jdk
Insert picture description here
configuration environment variables
Insert picture description here
Insert picture description here
Insert picture description here
create a new system variable JAVA_HOME: the variable value is to fill in the previous JDK installation path.
Insert picture description here
Find the Path option in the system variables [here taking Win10 as an example], after selecting Path, click Edit:
Insert picture description here
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
Insert picture description here
Open cmd and
enter cd C:\Program Files\Java\apache-tomcat-7.0.100\bin
and then enter service.bat install
Insert picture description here
as shown in the figure to show that the installation is successful

Guess you like

Origin blog.csdn.net/weixin_42403632/article/details/104394569