1、在弹出的“环境变量”窗口中,点击下方的“新建”按钮,在弹出的“新建系统变量”窗口中,新建一个名为“JAVA_HOME”的环境变量,变量值为Java的安装路径,本人为:D//p1.toutiaoimg.com/large/tos-cn-i-0022/104c876472f44010af00d8b82c951eb1" web_uri="tos-cn-i-0022/104c876472f44010af00d8b82c951eb1" img_width="530" img_height="476" fold="0" onerror="javascript//p1.toutiaoimg.com/large/tos-cn-i-0022/2e5b16bf0e2b432cb761712ebf5f05f2" web_uri="tos-cn-i-0022/2e5b16bf0e2b432cb761712ebf5f05f2" img_width="534" img_height="470" fold="0" onerror="javascript//p1.toutiaoimg.com/large/tos-cn-i-0022/03e8bb240fcf4aa8bda7b2606e03522b" web_uri="tos-cn-i-0022/03e8bb240fcf4aa8bda7b2606e03522b" img_width="533" img_height="156" fold="0" onerror="javascript//p1.toutiaoimg.com/large/tos-cn-i-0022/0b1116ea31b94f2fb04456fb176bd2ef" web_uri="tos-cn-i-0022/0b1116ea31b94f2fb04456fb176bd2ef" img_width="540" img_height="387" fold="0" onerror="javascript:errorimg.call(this);" >