Minecraft Forge server will not start. Uses bat file to start, but AMP says can't find forgemod.jar

Note - If you do not fill in every section below, your post won’t be answered - you must provide the steps you have followed so far and the actions you’ve already taken. Make sure to remove this notice from your post too.

OS Name/Version: Windows 11

Product Name/Version: Amp 2.4.8 (Decadeus)

Problem Description: Created a MC 1.18.2 FTB pack server. The server download creates a bat file and not a jar to start the server. AMP gives an error that the download was successful, but can’t find a jar file. Followed the instructions in this FAQ: Forge Frequently Asked Questions and other similar posts of changing the server type to forge and putting the forge version that FTB is using. After updating, AMP says the update was good, but can’t find the forgemod.jar. That specific version of forge is using a bat file and not a jar to start the server. The server works outside of AMP by using the bat file. The only jar file is the vanilla jar file. How do I start a server in AMP that only sets up a bat file and not a jar file?

If you're sharing console output, logs, or commands you have run, please make sure to use code tags 
(3x backticks for blocks, 1x backtick for a single line) to help make posts readable. This also
provides syntax highlighting.

Steps to reproduce:

  • Step 1: Setup MC 1.18.2 forge server
  • Step 2: Set server config to “forge server” and select the correct forge version
  • Step 3: update and try to run server

Actions taken to resolve so far: followed instructions in this FAQ: Forge Frequently Asked Questions and similar posts. Basically, that version of MC server installations create bat files and not jar files. AMP is unable to start the server using the bat files.

AMP doesn’t use the bat files, it just runs the entire command
What’s the full console output and/or latest.log?

Yes, I understand that Amp doesn’t use the bat file. However, when I setup the server it creates a bat file and not a jar file. When I follow the instructions in your FAQ, I get this error: "The update manager reported a successful update, but ./minecraft/ForgeMod,jar is missing. I am trying to create the FTB Presents Direwolf20 1.18 modpack. It uses Forge 40.1.84. This is what shows up in the console when trying to start the server:

07:45:40

2024-02-14 07:45:40,683 main WARN Advanced terminal features are not available in this environment

main/INFO

07:45:40

ModLauncher running: args [–launchTarget, forgeserver, --fml.forgeVersion, 40.1.84, --fml.mcVersion, 1.18.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220404.173914]

ModLauncher 9.1.3+9.1.3+main.9b69c82a starting: java version 21 by Oracle Corporation

07:45:41

SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/K:/AMPDatastore/Instances/Test-Forge4018401/Minecraft/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2314!/ Service=ModLauncher Env=SERVER

main/WARN

07:45:41

Mod file K:\AMPDatastore\Instances\Test-Forge4018401\Minecraft\libraries\net\minecraftforge\fmlcore\1.18.2-40.1.84\fmlcore-1.18.2-40.1.84.jar is missing mods.toml file

Mod file K:\AMPDatastore\Instances\Test-Forge4018401\Minecraft\libraries\net\minecraftforge\javafmllanguage\1.18.2-40.1.84\javafmllanguage-1.18.2-40.1.84.jar is missing mods.toml file

Mod file K:\AMPDatastore\Instances\Test-Forge4018401\Minecraft\libraries\net\minecraftforge\lowcodelanguage\1.18.2-40.1.84\lowcodelanguage-1.18.2-40.1.84.jar is missing mods.toml file

Mod file K:\AMPDatastore\Instances\Test-Forge4018401\Minecraft\libraries\net\minecraftforge\mclanguage\1.18.2-40.1.84\mclanguage-1.18.2-40.1.84.jar is missing mods.toml file

main/INFO

07:45:41

Found 1 dependencies adding them to mods collection

07:45:45

Compatibility level set to JAVA_17

main/ERROR

07:45:46

Mixin config tklib.mixin.json does not specify “minVersion” property

Mixin config myrtrees-common.mixins.json does not specify “minVersion” property

Mixin config supercircuitmaker.mixin.json does not specify “minVersion” property

Mixin config blockshot.mixins.json does not specify “minVersion” property

Mixin config itshallnottick.mixins.json does not specify “minVersion” property

Mixin config polylib.mixins.json does not specify “minVersion” property

Mixin config flatbedrock.mixins.json does not specify “minVersion” property

Mixin config minetogether.mixins.json does not specify “minVersion” property

main/INFO

07:45:46

Successfully loaded Mixin Connector [shetiphian.core.mixins.MixinConnector]

Successfully loaded Mixin Connector [com.leobeliik.extremesoundmuffler.MixinConnector]

Successfully loaded Mixin Connector [shetiphian.endertanks.mixins.MixinConnector]

Launching target ‘forgeserver’ with arguments

main/WARN

07:45:46

Reference map ‘createdeco.refmap.json’ for createdeco.mixins.json could not be read. If this is a development environment you can ignore this message

Reference map ‘compactmachines.refmap.json’ for compactmachines.mixin.json could not be read. If this is a development environment you can ignore this message

Reference map ‘farmersrespite.refmap.json’ for farmersrespite.mixins.json could not be read. If this is a development environment you can ignore this message

Reference map ‘myrtrees-common-refmap.json’ for myrtrees-common.mixins.json could not be read. If this is a development environment you can ignore this message

Reference map ‘supercircuitmaker.refmap.json’ for supercircuitmaker.mixin.json could not be read. If this is a development environment you can ignore this message

Reference map ‘insanelib.refmap.json’ for insanelib.mixins.json could not be read. If this is a development environment you can ignore this message

Reference map ‘polylib-common-refmap.json’ for polylib.mixins.json could not be read. If this is a development environment you can ignore this message

Reference map ‘bloodmagic.refmap.json’ for bloodmagic.mixins.json could not be read. If this is a development environment you can ignore this message

Reference map ‘nethersdelight.refmap.json’ for nethersdelight.mixins.json could not be read. If this is a development environment you can ignore this message

Console

07:45:47

Exception in thread “main” org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50)

at cpw.mods.securejarhandler@1.0.3/cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:110)

at cpw.mods.securejarhandler@1.0.3/cpw.mods.cl.ModuleClassLoader.lambda$findClass$16(ModuleClassLoader.java:216)

at cpw.mods.securejarhandler@1.0.3/cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:226)

at cpw.mods.securejarhandler@1.0.3/cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:216)

at cpw.mods.securejarhandler@1.0.3/cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:132)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)

at java.base/java.lang.Class.getDeclaredMethods0(Native Method)

at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3578)

at java.base/java.lang.Class.getMethodsRecursive(Class.java:3719)

at java.base/java.lang.Class.getMethod0(Class.java:3705)

at java.base/java.lang.Class.getMethod(Class.java:2393)

at MC-BOOTSTRAP/fmlloader@1.18.2-40.1.84/net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:32)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.run(Launcher.java:106)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.Launcher.main(Launcher.java:77)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)

at MC-BOOTSTRAP/cpw.mods.modlauncher@9.1.3/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)

at cpw.mods.bootstraplauncher@1.0.0/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149)

Caused by: org.spongepowered.asm.mixin.throwables.ClassMetadataNotFoundException: java.util.concurrent.CompletableFuture

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transformMethod(MixinPreProcessorStandard.java:754)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transform(MixinPreProcessorStandard.java:739)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:310)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.createContextFor(MixinPreProcessorStandard.java:280)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinInfo.createContextFor(MixinInfo.java:1288)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:292)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365)

at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363)

… 27 more

The Forge Jar files are hidden away in the libraries directory, but AMP still knows how to start it properly.
Double check that the server’s Jar is set to [Autoselect], and maybe try and set the Java version to java 17 under Java and Memory. From that error there my gut is saying it might be a Java version issue for some strange reason.

Yes, that was the issue, thanks. I was using Java 21 for the server as that was the version I was using for single player with 1.18.2. Once I changed to Java 17, the server started.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.