Configuration with Minecraft - mods for minecraft nto possible

System Information

Field Value
Operating System Linux - Ubuntu 24.04.2 on x86_64
Product AMP ‘Phobos’ v2.6.0.12 (Mainline)
Virtualization None
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Failed

Problem Description

Issue

I cant Install any modloader/modpack for minecraft. Ive dove so my things.I even installed the server on my PC(works fine there) send it via SFTP to the server and now i cant start because a) minecraft_server.jar is missing (well install it then) or b) because amp say there is an error and its my fault. For a “simple” server hoster with a quote “focus on ease of use through its intuitive user interface and simple setup process.” i am screaming.

Reproduction Steps

  • Install new Instance
  • choose any forge/FTB server installer and install it
  • Try to run the server

error from Console on startup try

A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:109)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
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)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
… 3 more

You’re using the wrong Java runtime. What MC version are you running?

Also note, nothing about modded Minecraft is easy, and you’ll need to learn the weird hangups along the way. AMP can’t fix modded MC’s weird spaghetti lol.

im trying to run “FTB Sky Odyssey” i need forge version 14.23.5.2857. and im using the system default Java 21

That version of Minecraft would need Java 8 selected under Java and Memory

okay. just to be clear my “setup steps” are

  • Create new minecraft java instance
  • go to “Configuration”
  • make it use 6144MB of RAM
  • Now selecting java 8
  • switching to “Server and Startup”
  • Change servertype to “Forge”
  • Change Release Stream to Specific Version
  • Change Forge version to "14.23.5.2857
  • hit Download/update

After these steps i try to start the server

Yeah, those settings should work fine. If not, you’ll want to show the Last Executable and Last Arguments under the Support and Updates tab

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