Variable name: JAVA_HOME
Variable value: C :\Program Files\Java\jdk1.8.0_311
Variable name: Path
Variable value: %JAVA_HOME%\bin
or C:\Program Files\Java\jdk1. 8.0_311\bin
>java -version java version "1.8.0_311" Java(TM) SE Runtime Environment (build 1.8.0_311-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode) >javac -version javac 1.8.0_311 >echo %JAVA_HOME% C:\Program Files\Java\jdk1.8.0_311\bin
The above is the detailed content of How to configure Java environment variables in Windows. For more information, please follow other related articles on the PHP Chinese website!