配置环境变量
![4ad82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p01.5ceimg.com/content/4ad82eab-2b23-eb11-8da9-e4434bdf6706.png)
双击打开"我的电脑"图标。
⬇️
![4cd82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p01.5ceimg.com/content/4cd82eab-2b23-eb11-8da9-e4434bdf6706.png)
![4dd82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p01.5ceimg.com/content/4dd82eab-2b23-eb11-8da9-e4434bdf6706.png)
左键单击"Windows(C:)">左键单击"Program Files"文件夹。
⬇️
![4ed82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p03.5ceimg.com/content/4ed82eab-2b23-eb11-8da9-e4434bdf6706.png)
![4fd82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p03.5ceimg.com/content/4fd82eab-2b23-eb11-8da9-e4434bdf6706.png)
![52d82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p04.5ceimg.com/content/52d82eab-2b23-eb11-8da9-e4434bdf6706.png)
左键单击"Java"文件夹>左键单击"jdk1.8.0_91">左键单击"bin"文件夹。
⬇️
![55d82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p01.5ceimg.com/content/55d82eab-2b23-eb11-8da9-e4434bdf6706.png)
左键单击>复制路径。
![56d82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p04.5ceimg.com/content/56d82eab-2b23-eb11-8da9-e4434bdf6706.png)
右键单击"此电脑">左键单击"属性"。
⬇️
![59d82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p01.5ceimg.com/content/59d82eab-2b23-eb11-8da9-e4434bdf6706.png)
![5ad82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p03.5ceimg.com/content/5ad82eab-2b23-eb11-8da9-e4434bdf6706.png)
左键单击"高级系统设置">左键单击"环境变量(N)…"。
⬇️
方法一
![5bd82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p05.5ceimg.com/content/5bd82eab-2b23-eb11-8da9-e4434bdf6706.png)
"系统变量(S)"中,左键双击"Path"变量值。
⬇️
![5cd82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p05.5ceimg.com/content/5cd82eab-2b23-eb11-8da9-e4434bdf6706.png)
左键单击"新建(N)"按钮。
⬇️
![5ed82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p02.5ceimg.com/content/5ed82eab-2b23-eb11-8da9-e4434bdf6706.png)
![60d82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p05.5ceimg.com/content/60d82eab-2b23-eb11-8da9-e4434bdf6706.png)
粘贴路径。环境变量点击"确定"按钮,系统属性点击"确定"按钮。
方法二
![5bd82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p05.5ceimg.com/content/5bd82eab-2b23-eb11-8da9-e4434bdf6706.png)
![5ed82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p02.5ceimg.com/content/5ed82eab-2b23-eb11-8da9-e4434bdf6706.png)
"系统变量(S)"中,左键双击"Path"变量值>左键单击"新建(N)"按钮。
⬇️
![6ad82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p02.5ceimg.com/content/6ad82eab-2b23-eb11-8da9-e4434bdf6706.png)
手动输入%JAVA_HOME%bin >左键单击确定按钮。
⬇️
![6bd82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p01.5ceimg.com/content/6bd82eab-2b23-eb11-8da9-e4434bdf6706.png)
"系统变量(S)"中,左键单击"新建(N)"按钮。
⬇️
![6cd82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p04.5ceimg.com/content/6cd82eab-2b23-eb11-8da9-e4434bdf6706.png)
变量名(N):JAVA_HOME
变量值(V):C:Program FilesJavajdk1.8.0_91
⬇️
新建系统变量单机“确定”按钮,环境变量单击"确定"按钮,系统属性点击"确定"按钮。
手动验证:
![6ed82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p01.5ceimg.com/content/6ed82eab-2b23-eb11-8da9-e4434bdf6706.png)
Windows+r 输入cmd>左键单击确定。
输入 java和javac敲击“回车”进行验证。
![6fd82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p03.5ceimg.com/content/6fd82eab-2b23-eb11-8da9-e4434bdf6706.png)
![70d82eab-2b23-eb11-8da9-e4434bdf6706.png](http://p03.5ceimg.com/content/70d82eab-2b23-eb11-8da9-e4434bdf6706.png)