Introduction to JDK
Java Development Kit 简称 JDK,即java开发工具包,是编写java代码最基本的要求;
Java Runtime Environment 简称 JRE,即java运行环境,支持java程序的运行,但是不能编写、编译;
Java Virtual Machine 简称 JVM ,即java虚拟机,不太好解释,初学者知道java能够实现跨平台的特点就是因为有了JVM的存在。
注意:
JDK 中包含 JRE
JRE 中包含了 JVM
JDK download
这里给大家提供了Windows 64位 1.8的版本:
链接:https://pan.baidu.com/s/1K6QyU2MYIvlNobgB72efjw
提取码:xzsq
若需其他版本,请移步官网自行选择:https://www.oracle.com/java/technologies/javase-downloads.html
JDK installation
安装前确认电脑上没有安装相同版本的JDK
Step 1: Double-click the downloaded installation package, and see the picture below:
Step 2: Click "Next" to see the picture below:
注意:一般情况下,安装路径要求 1、不能存在中文和空格; 2、不建议安装到系统盘C盘
Step 3: Click "Change":
将路径更改到自己定义的位置----请务必牢记
例如:D:\SoftWare\Java\jdk1.8.0_231\ ---- 这是我自己的路径,大家可自行更改
Step 4: Click "Next" as shown in the figure below, and wait at this time:
Step 5: After the above steps are installed, the following interface will appear:
这是安装JRE的界面,建议将路径更改为与之前安装JDK的同级路径
例如:JDK--D:\SoftWare\Java\jdk1.8.0_231\
JRE--D:\SoftWare\Java\**jre**1.8.0_231\
Step 6: After changing the path, click Next:
Step 7: Wait until it appears:
Step 8: Click Close, congratulations, the JDK is installed successfully.
JDK environment variable configuration
1、选中 此电脑-右键-属性-高级系统设置-环境变量
2、在系统变量中 新建
变量名:JAVA_HOME
变量值: D:\SoftWare\Java\jdk1.8.0_231\ --- JDK的安装位置 填自己的
3、在系统变量中 找到path 编辑
追加两行即可: 若是win7 请以;(英文的分号)隔开
之后一路点击确定
Test whether the JDK installation is successful
使用cmd命令打开命令行模式窗口(小黑窗口)分别测试 java 、javac、java -version命令
If the above effects appear, congratulations, the JDK installation and testing are successful! ! ! !
If you have any questions above
, please contact: QQ 897884044. If you think it is helpful to you, can you ask the author for a cup of coffee?
WeChat
Alipay