Jump to content

Exception in thread "main" java.lang.IllegalStateException: Current Java is 8 but we require at least 21 at net.minecraf


Recommended Posts

Posted

Trying to start a server. When running run.bat the following pops up
"

Exception in thread "main" java.lang.IllegalStateException: Current Java is 8 but we require at least 21
        at net.minecraftforge.bootstrap.shim.Main.main(Main.java:32)

If you're struggling to fix the error above, ask for help on the forums or Discord mentioned in the readme.
Press any key to continue . . .
"
Any help?

Posted

You need to install Java 21.

It tells you how to do it in the FAQ, link is orange banner at top of page that says "Please read..."

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.