03 安装JDK(03 installing JDK)

安装JDK

  • 百度搜索JDK8,找到下载地址
  • 登录Oracle账号
  • 下载电脑对应的版本
  • 同意协议后方可安装(主播版本8u181)
  • 记住安装的路径
  • 配置环境变量 1. 我的电脑–>右键–>属性 1. 高级系统设置–>环境变量 1. 底下系统里新建–>变量名JAVA_HOME,变量值:JDK1.8文件下路径复制 1. 双击打开Path变量 1. 新建%JAVA_HOME%\bin和%JAVA_HOME%\jre\bin 1. 确定确定确定
  • 测试JDK是否安装成功

    打开CMD

    Java空格version

  • 打开CMD
  • Java空格version

卸载JDK

  • 右键此电脑–>属性–>高级系统设置–>环境变量
  • 找到JAVA_HOME双击打开,找到路径,根据路径找到文件夹彻底删除
  • 回到环境变量,删除JAVA_HOME
  • 双击打开Path,删除两个相关的JAVA目录
  • 确定确定确定
  • 用dos输入java -version检查是否删除
  • 不是内部或外部命令即成功删除
————————

安装JDK

  • Baidu search jdk8 and find the download address
  • 登录Oracle账号
  • Download the corresponding version of the computer
  • Install after agreement is agreed (anchor version 8u181)
  • Remember the installation path
  • Configure environment variables 1. My computer — > right click — > properties 1. Advanced system settings — > environment variables 1. Create — > variable name Java in the system below_ Home, variable value: copy path under JDK1.8 file 1. Double click to open path variable 1. Create% Java_ Home% \ bin and% Java_ Home% \ JRE \ bin 1. OK
  • 测试JDK是否安装成功

    打开CMD

    Java空格version

  • 打开CMD
  • Java空格version

卸载JDK

  • Right click this computer — > properties — > advanced system settings — > environment variables
  • Find Java_ Home double click to open it, find the path, find the folder according to the path, and delete it completely
  • Go back to the environment variable and delete Java_ HOME
  • Double click to open path and delete the two related Java directories
  • OK, OK, OK
  • 用dos输入java -version检查是否删除
  • If it is not an internal or external command, it is successfully deleted