JDK installation and configuration environment variables Win10
JDK download and installation (simple instructions)
-
Baidu search JDK1.8
-
download
-
Double click to install JDK
Configure environment variables
-
My Computer –> Right Click –> Properties
-
Environment Variables --> Add a variable named JAVA_HOME and the path is the JDK path
-
Configure the path address
Verify that the installation was successful
-
Open the cmd console
-
Enter java -version
if it appears:
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'
has value '1.8', but '1.7' is required.
It means that jdk7 may have been installed before, and there is no clean
solution for some files :
1. Search java in the C:\Windows\System32 directory, and three exes come out: java, javaw, javaws. Delete all three exes.
Check to see if the environment variable is referenced correctly.If it shows:
java version “1.8.0_231”
Java™ SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot™ 64-Bit Server VM (build 25.231-b11, mixed mode)
Congratulations! Successful installation