> For the complete documentation index, see [llms.txt](https://docs.cheapserver.tw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheapserver.tw/debug/unable-jarfile.md).

# 找不到伺服器啟動 Jar 檔案

控制台終端輸出訊息：

{% code lineNumbers="true" %}

```
CheapServer]: 正在檢查伺服器儲存空間，可能需要一點時間，請稍後... 
[CheapServer]: 正在更新運行配置檔案... 
[CheapServer]: 正在確認檔案權限，可能需要一點時間請稍後... 
container@pterodactyl~ 伺服器已標示為 starting... 
[CheapServer]: 正在取得 Docker 容器檔案，可能需要幾分鐘才會完成... 
[CheapServer]: 已取得 Docker 容器檔案。 
container@pterodactyl~ java -version openjdk version "21.0.3" 2024-04-16 LTS
OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS) 
OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing) 
container@pterodactyl~ java -Xms128M -Xmx8192M -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar 
Error: Unable to access jarfile server.jar 
container@pterodactyl~ 伺服器已標示為 offline... 
[CheapServer]: ---------- CheapServer 檢測到伺服器崩潰! ---------- 
[CheapServer]: 退出狀態碼: 1 
[CheapServer]: 超出記憶體: false 
[CheapServer]: 正在檢查伺服器儲存空間，可能需要一點時間，請稍後... 
[CheapServer]: 正在更新運行配置檔案... 
[CheapServer]: 正在確認檔案權限，可能需要一點時間請稍後... 
container@pterodactyl~ 伺服器已標示為 starting... 
[CheapServer]: 正在取得 Docker 容器檔案，可能需要幾分鐘才會完成... 
[CheapServer]: 已取得 Docker 容器檔案。
```

{% endcode %}

## 分析錯誤

你可以看到錯誤訊息是在第 11 行的 <mark style="color:red;">Error: Unable to access jarfile server.jar</mark>，\
翻譯過來就是伺服器找不到啟動 Jar 檔案。

## 錯誤修復

如果你是自行上傳伺服器核心，請至啟動設定更改伺服器啟動 Jar 檔案。

<figure><img src="https://3045106892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F14bYhNP1432cxGkZABZe%2Fuploads%2FnzSU8HIY5lwZC7zou7jR%2Fimage.png?alt=media&amp;token=bf99a05d-bcb0-44a8-8408-d7e4133deebd" alt=""><figcaption></figcaption></figure>

如果是伺服器核心遺失，請至其他設定重新安裝伺服器。\
這樣伺服器就會自動下載核心並安裝。

<figure><img src="https://3045106892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F14bYhNP1432cxGkZABZe%2Fuploads%2FjXX9WFoGC5b8MQd9iTRx%2Fimage.png?alt=media&amp;token=89a5b1a9-89c0-4c25-8f57-402f5c431923" alt=""><figcaption></figcaption></figure>

如果重新安裝核心還是無法解決，請確認啟動參數是否設定正確。
