Configure environment variables of JDK 1.15 for Windows 10 operating system

Enter "Environment" in the search box under Windows 10 to select "Edit System Environment Variables", and then click "Environment Variables".
Add JAVA_HOME under system variables. The variable name is JAVA_HOME, and the variable value is C:\Program Files\Java\jdk-15.0.1
Add CLASS_PATH under the system variable. The variable name is CLASS_PATH, and the variable value is .;%JAVA_HOME%\lib;%CATALINA_HOME%\lib.
Add Path under system variables. The variable value is %JAVA_HOME%\bin.
At this point, the environment variable configuration is complete, just hit cmd command prompt and enter java -version.

Guess you like

Origin blog.51cto.com/dreamerhan/2553329