Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trouble Starting Forge Server for Minecraft 1.20.1

Featured Replies

Posted

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

  • Author

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

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

Try my Modpack

spacer.png

>>Link to Curseforge<<

  • Author

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. 

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.