Jump to content

Trouble Starting Forge Server for Minecraft 1.20.1


Recommended Posts

Posted (edited)

Hello,

I am trying to start my forge-modded server. I go to the point of invoking the run.bat, but I get the following error:

java.lang.IllegalArgumentException: Unsupported class file major version 66

I have Java SE Dev Kit 22.0.1 installed. Do I need to downgrade? 

Before starting a Forge dedicated server, I created a vanilla server. I did get an error when trying to connect, but I figured it was because I had mods running on the client. 

Sadly, I am pretty much "unconscious incompetent" here. 

 

Thanks for any advice. 

Edited by Redempsyn
Stated wrong Java version installed and added details
Link to comment
Share on other sites

Posted (edited)

Hi Guys,

Thanks for the replies. From what I can see I have the latest version of Java. I have Java 8 update 411 and Java SE Development Kit 22.0.1. It was late for me and I meant 22.0.1 not 11.0.1. Should I only have one installed? 

 

Thanks again!

 

Edited by Redempsyn
Clarity
Link to comment
Share on other sites

You can have multiple Java version installed

 

For the server, you have to set the path to java 17 in your startscript

For example:
 

"C:\Program Files\Java\jdk-17.0.9\bin\javaw.exe" -Xmx4G -Xms2048M -jar forgeserver.jar 
pause 

Just make sure the path is correct and keep the quotation marks

And the forgeserver jar name should match

Link to comment
Share on other sites

Hi Guys,

Thanks again for the replies. Uninstalling version 22 fixed my issue. I tried starting the server using the suggestion @TileEntity gave but could not see how to invoke Forge. I then uninstalled JDK version 22 as @Xoroshio advised. I may have to stay with having only JDK 17 installed. Now I need to figure out why the startup does not like the number of mods I installed. 

Link to comment
Share on other sites

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.