Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forge doesn't work in 1.12.2 #2318

Closed
KillsT3aler69 opened this issue Aug 5, 2023 · 2 comments
Closed

Forge doesn't work in 1.12.2 #2318

KillsT3aler69 opened this issue Aug 5, 2023 · 2 comments

Comments

@KillsT3aler69
Copy link

Describe the problem

The image crashes when you try to run forge in 1.12.2.

Container definition

docker run -it
-p 25565:25565
-e EULA=TRUE
-e TYPE=FORGE
-e VERSION=1.12.2
itzg/minecraft-server

Container logs

[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x 2 1000 1000 4096 Aug 3 18:19 /data'
[init] Resolving type given FORGE
[mc-image-helper] 14:26:31.979 INFO : Downloading Forge installer 14.23.5.2859 for Minecraft 1.12.2
[mc-image-helper] 14:26:33.257 INFO : Running Forge installer. This might take a while...
[init] Creating server properties in /data/server.properties
[init] Disabling whitelist functionality
[init] Setting initial memory to 1G and max to 1G
[init] Starting the Minecraft server...
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)
Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
at net.minecraft.launchwrapper.Launch.(Launch.java:34)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
... 6 more
2023-08-05T14:26:45.332Z WARN mc-server-runner Minecraft server failed. Inspect logs above for errors that indicate cause. DO NOT report this line as an error. {"exitCode": 1}
2023-08-05T14:26:45.332Z INFO mc-server-runner Done

@itzg
Copy link
Owner

itzg commented Aug 5, 2023

@KillsT3aler69
Copy link
Author

This did indeed fix the issue, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants