Win10 Next Java Environment variable configuration
First , You should have installed Java Of JDK 了 ( If not installed JDK, Please jump to this website :https://www.bilibili.com/read/cv8254063)
What Xiaobian installed is jdk-8u91-windows-x64
Next, how to configure Java Environment variables of , It's also because I forgot to make a backup one day
( notes :win10 Of Java Environment variable configuration and other windows The version is slightly different )
On the computer desktop Right click on the “ This computer ” Of “ attribute ” Options
choice “ Advanced system setup ” Options
Click on the “ environment variable ” Options
The next step is the specific configuration process :
Click on “ System variables ” Below ” newly build “ Options
stay ” Variable name “ Fill in ”Java_Home“
” A variable's value “ by JDK The installation path , The author's path is ”D:\Program Files\Java\jdk1.8.0_91“
Click on ” determine “ Options
stay ” System variables “ Find ”Path“
Choose ”Path“ Click on ” edit “ Options
Choose... On the right “ Edit text ”, Copy everything in quotation marks “%Java_Home%\bin;%Java_Home%\jre\bin;”, To “ A variable's value ” At the top of the column ,“ determine ”
stay “ System variables ” bar ,“ newly build ”,“ Variable name ” by “CLASSPATH”,“ A variable's value ” by “.;%Java_Home%\bin;%Java_Home%\lib\dt.jar;%Java_Home%\lib\tools.jar”,“ determine ”
Click on “ environment variable ” The bottom “ determine ” Options
Back to the desktop , Press shortcut key “Win+R”, Input “cmd”
Check Java Environment configured successfully
Input "java"
Input "javac"
Input "java -version"
If you see all three pictures above , Congratulations , The environment variables are configured !
If you have any problems during installation , Check out my bulletin board , Answer as you ask ! And some of the things I've been working on these days Java Learning manual , Interview questions , development tool ,PDF Document book tutorial , If you need it, you can share it for free .