Error while creating a Forge Minecraft server

Not every version of MC uses the latest Java runtime:

In your case you should be using Java 11

2 Likes