# 环境安装

本文及其以后的教程文档，均使用ChatGPT的回答（引用部分）。

有一个新手，他不知道如何安装Java的环境。请想他解释：JDK、JRE的区别。并且给出在window10环境下安装JDK步骤？

> JDK（Java Development Kit）是Java开发工具包，其中包含了Java编译器、Java运行时环境（JRE）以及其他的开发工具。而JRE（Java Runtime Environment）是Java运行时环境，用于运行Java程序。简单来说，JDK是用于开发Java程序的，而JRE是用于运行Java程序的。
>
> 在Windows 10环境下安装JDK的步骤如下：
>
> 1. 打开Oracle官网的JDK下载页面（[https://www.oracle.com/java/technologies/downloads/）。](https://www.oracle.com/java/technologies/downloads/%EF%BC%89%E3%80%82)
> 2. 点击“JDK Download”按钮，并选择适合你系统的JDK版本和操作系统类型。
> 3. 接受许可协议后，点击下载链接。
> 4. 安装JDK。双击下载好的安装文件，然后按照提示进行安装。默认情况下，JDK将会安装到C:\Program Files\Java\jdk-版本号目录下。
> 5. 配置环境变量。将JDK的bin目录添加到PATH环境变量中。这样才能在命令行中运行Java编译器和其他工具。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.120.show/java/se/install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
