# Invalid jarfile

<figure><img src="https://github.com/Kanorto/VWIKI/assets/77388225/9445ecfb-8e2d-4343-891b-a7c2acb5d8ac" alt=""><figcaption><p>Скриншот ошибки</p></figcaption></figure>

Стандартная ошибка при которой Java не может найти или использовать jar файл. Ниже приведём несколько причин, как решить эту проблему.

## 1. Не изменили параметр запуска

Стандартная ошибка заключается в том, что вы не переименовали server.jar в настройках. Рассказываю как это сделать.

<figure><img src="https://github.com/Kanorto/VWIKI/assets/77388225/3ece6cbf-f565-40f0-9776-885774f89836" alt=""><figcaption><p>Быстрый гайд на картинке</p></figcaption></figure>

1. Заходим в <mark style="color:blue;">`Файлы`</mark> или заранее копируем имя файла.
2. Копируем имя файла, например <mark style="color:purple;">`purpur-1.20.2-2095.jar`</mark>.
3. Заходим в раздел <mark style="color:blue;">`Параметры запуска`</mark>.
4. Ищем поле <mark style="color:blue;">`Имя ядра у сервера`</mark>.
5. Вводим ранее скопированное имя файла, **ОБЯЗАТЕЛЬНО с .JAR**
6. (Необязательно) Выбираем версию java в соответствии с подсказкой:

{% hint style="info" %}
1.19 - 1.20.4 - Java 17\
1.17 - 1.18.2 - Java 16\
Under 1.16.5 - Java 8
{% endhint %}

**Если это не помогло, переустановите ядро сервера, возможно оно повредилось при передаче.**


---

# 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://wiki.veroid.net/wiki/errors/server-jar.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.
