Minecraft client crashes due to Java error?

Zo
- in Launchers
2

I coded my own Minecraft client with Intellij. If I ran it directly in the debug in Intellij, everything worked. But when I create an artifact and want to start it via Minecraft Launcher, there are 2 Java error messages.

After I have confirmed the upper one with ok this comes.

Then the Minecraft launcher starts and says an unexpected error has occurred. Does anyone know how I can fix this, maybe directly in Intellij or So that not everyone has the problem that I give the client?

Lo

No log = no help

Zo

Already fixed it.