Java开发环境搭建(Construction of java development environment)

1.0 Java开发环境搭建

卸载JDK

  • 删除Jdk的安装目录
  • 删除JAVA_HOME
  • 删除Path环境变量里面和JAVA_HOME相关的所有
  • cmd里面java – version查看时候删除成功

安装JDK

  • 百度JDK8,找到下载地址
  • 同意协议
  • 下载电脑对应的版本
  • 双击安装jdk
  • 记住安装的路径
  • 配置环境变量

    我的电脑->右键->属性->高级系统设置->环境变量
    新建系统变量JAVA_HOME,值为jdk安装的路径
    配置Path变量,添加%JAVA_HOME%\bin和%JAVA_HOME%\jre\bin

  • 我的电脑->右键->属性->高级系统设置->环境变量
  • 新建系统变量JAVA_HOME,值为jdk安装的路径
  • 配置Path变量,添加%JAVA_HOME%\bin和%JAVA_HOME%\jre\bin
  • 测试JDK是否安装成功

    打开cmd
    java -version

  • 打开cmd
  • java -version
————————

1.0 java development environment construction

Uninstall JDK

  • Delete the installation directory of JDK
  • 删除JAVA_HOME
  • Delete path environment variable and Java_ All related to home
  • cmd里面java – version查看时候删除成功

Install JDK

  • Baidu jdk8, find the download address
  • Consent agreement
  • Download the corresponding version of the computer
  • Double click Install JDK
  • Remember the installation path
  • Configure environment variables
    My computer – > right click – > properties – > advanced system settings – > environment variables
    New system variable Java_ Home, the value is the path of JDK installation
    Configure path variable and add% Java_ Home% \ bin and% Java_ HOME%\jre\bin
  • My computer – > right click – > properties – > advanced system settings – > environment variables
  • New system variable Java_ Home, the value is the path of JDK installation
  • 配置Path变量,添加%JAVA_HOME%\bin和%JAVA_HOME%\jre\bin
  • 测试JDK是否安装成功

    打开cmd
    java -version

  • 打开cmd
  • java -version