Jump to content

Recommended Posts

Posted

currently trying to create a server and im up to the point of running it via ./run.sh . once i enter this it pops with " Exception in thread "main" java.lang.IllegalStateException: Current Java is 18 but we require at least 21
        at net.minecraftforge.bootstrap.shim.Main.main(Main.java:32)  "

i have no idea about any of this so think of me as a child. 

what do i do to complete this and start the server?

Posted

You need to update your java version. Try adoptium: https://adoptium.net/temurin/releases/?os=any&arch=any&version=21

Scroll down to windows if that's what you're using. You'll probably want to choose the .msi file.

Technically all you should need is the JRE, but when I tried to select it from the dropdown it wasn't working and the JDK works fine too.

After you download the .msi file and start the installation wizard, make sure you select the options to add installation to path, set java home variable, and associate jar files with java.

Once you've done that, you should be able to run your .sh or .bat script and it should work fine.

 

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.