# 首次操作 Eclipse

> 在這章節會示範新增 Class，會操作如何將Class 建立在上一次的Project

### 一、查看專案資料夾

![進到畫面後，直接將Welcome 歡迎畫面點擊叉叉](/files/-M4NOnClmYpXlWQhytrQ)

![這時只要到左側的小資料夾展開即可](/files/-M4NOrnA2bPN5-Pp0apa)

![如樹狀即可展開資料夾](/files/-M4NOwoUw2AFNBO9AJJn)

### 二、建立 Class

![點擊２ 綠底白字C：新增Class 即可新增Class](/files/-M4NPHT7coM4o97w948D)

再次檢查上層的Package 、Class name 與下方是否已打勾。 \
(因人偏好而異，下圖為 將class02 建立於ch01這個project下的ch01 package)

![](/files/-M4NPPu725XWEVgu-jS-)

若想好好的將此教學分類好，可按照下方的設定：

在Package 處直接打上ch02，Name的部分打上class01，再勾選下方的「public ststic void main(String\[] args)」，直接點擊Finish 即可直接創立新的package 與該底下的class。

![](/files/-M4NPWcR9p_tbIzaVkdP)

![成功創立](/files/-M4NPYcxv9hQsCMfXWQi)

### 三、更改 Project 名稱

![點擊最外層的ch01](/files/-M4NPiiGUT4rET2kTfhN)

![點擊左上方的File，找到Rename即可更名為自己想要的project名](/files/-M4NPlMi7rIUDmzZQfor)

![此教學更名為java-sc](/files/-M4NPoty1KFR9Fi35lsm)

### 四、讀取 Project

> 假設今天有人傳了一個project給你，如何開啟

![當我們進到歡迎頁面時，點擊「Import existing projects」](/files/-M4NQ0pSckI3e05ftsrQ)

![點擊Browse 選擇project位置後，再點擊Finish即可](/files/-M4NQ3hHs2dxx_AH9Ola)

![這時就會看到樹狀圖上方的「ch01」為剛剛導入的project，而下方的「java-sc」為 上方更名教學的project。](/files/-M4NQ6Tzcp-lUCSxGcud)


---

# 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-002.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.
