# 安裝 Java

### 一、下載 JDK

{% hint style="info" %}
Java 官網時常更新，因此看到的畫面有可能與以下教學有差異。

示範為下載 Java SE 8u102
{% endhint %}

進到[下載頁面](https://www.oracle.com/java/technologies/javase-downloads.html)，在Java SE Downloads 中Java Platform (JDK) 8u101 / 8u102\
點選DOWNLOAD。

![](/files/-M4NL69BVb8JTfL50IdL)

點擊後會轉跳到下載頁面，此時找到想要下載的版本號(以下教學為8u102)， 點擊「Accept License Agreement」意指接受許可協議； 點擊後於下方選擇自己的電腦系統相對應位元版本進行下載。 (本教學以Windows x64 為主)。

![](/files/-M4NLqqRw2DaPfFp0bnR)

點擊接受協議許可後則會出現\
Thank you for accepting the Oracle Binary Code License Agreement for Java SE; you may now download this software.

之後在Download的地方點擊下載。

![](/files/-M4NLulT0ixK0RUt7gcA)

### 二、安裝 JDK

執行下載的檔案「jdk-8u102-windows-x64.exe」

![選擇「是」](/files/-M4NM9oL6vcw13a2PDpn)

![選擇「Next」](/files/-M4NMBwCF6a0YgKuYKhG)

![選擇「Next」](/files/-M4NMEfzSKO1JwFWZBRe)

![](/files/-M4NMGlMbqYwPJgnfKmf)

![安裝至預設資料夾即可，「下一步」](/files/-M4NMIq2yqjWy08LKBxf)

![](/files/-M4NMbMwhw3cRA8kcK72)

![「Close」完成安裝](/files/-M4NMdJo7xHAcxx1zyVT)


---

# 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://java.4-x.tw/newbie/java-000.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.
