# Failed to load config

## Why this error appear?

![](/files/MqDcJhsK6uIxAp9ZcRzH)

There are two reason why this error appear. One of them is having Java 16/17 and second one is invalid path (Having bot in OneDrive directory or any other cloud disk)

## How to fix it then?

First of all we need to have updated bot to the latest available version for you.  Check our ["How to update bot?"](/faq/how-to-update-bot.md) section. If you can't have updated version, please follow steps under.

Let's start from fixing our Java version. Navigate to Start > Settings > Apps > and search for "JAVA"

![](/files/z7qncMyUgEkydzzsJeFK)

As you can see there are 3 Java versions, Java 8 Update 291, Java Se Development kit also 291 and **Java SE Development Kit 17.**

{% hint style="danger" %}
**Only Java 17 and Java 16 are problematic if you use 1.13.17 beta 98 and older!**
{% endhint %}

&#x20;Now as we detected we have wrong Java version, simply click on it and then Uninstall.

![](/files/QPOXuG6jCXhtsfks4Xh8)


---

# 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://guide.darkbot.eu/troubleshooting/failed-to-load-config.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.
