> For the complete documentation index, see [llms.txt](https://guide.darkbot.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.darkbot.eu/troubleshooting/failed-to-load-config.md).

# 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)
