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.

A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException

Featured Replies

Posted

Command used:

docker run --rm -v /home/dinidu/MCModServer:/data -e TYPE=CURSEFORGE -e CF_SERVER_MOD=SevTech_Ages_3.2.1.zip -p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server
Output:

[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxrwx 3 1000 1000 4096 Jul  6 19:54 /data'
[init] Resolved version given LATEST into 1.17.1
[init] Resolving type given CURSEFORGE
[init] **********************************************************************
[init] WARNING: The image tag itzg/minecraft-server:java8 is recommended
[init]          since some mods require Java 8
[init]          Exception traces reporting ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader
[init]          can be fixed with java8
[init] **********************************************************************
[init] Looking for Feed-The-Beast / CurseForge server modpack.
~/FeedTheBeast ~
Installing Forge and required jars.
Done!
~
[init] detected FTB, changing properties path to /data/FeedTheBeast/server.properties
[init] server.properties already created, skipping
[init] Checking for JSON files.
[init] Setting initial memory to 1G and max to 1G
[init] Running FTB /data/FeedTheBeast/ServerStart.sh in /data/FeedTheBeast ...
Starting SevTech Ages 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.<init>(Launch.java:34)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    ... 6 more
2021-07-06T20:34:23.513Z    WARN    mc-server-runner    sub-process failed    {"exitCode": 1}
2021-07-06T20:34:23.513Z    INFO    mc-server-runner    Done
 

My Java Version is  "1.8.0_292", OpennJDK 64-Bit Server VM

  • Author

Nevermind I fixed it

Added :java8 to the end

Ran docker run --rm -v /home/dinidu/MCModServer:/data -e TYPE=CURSEFORGE -e CF_SERVER_MOD=SevTech_Ages_3.2.1.zip -p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server and I was able to join :)

Guest
This topic is now closed to further replies.

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.