Startup Issue with Minecraft - Tried to add a cursedforge modpack "Dungeons Dragons and Spaceshuttles"

System Information

Field Value
Operating System Linux - Debian GNU/Linux 11 on x86_64
Product AMP ‘Decadeus’ v2.4.6.6 (Mainline)
Virtualization QEMU_KVM
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Failed

Problem Description

Issue

Tried to add a cursedforge modpack “Dungeons Dragons and Spaceshuttles”
Following a guide, from HostingerAcademy
Created the Mods folder
Added the forge 1.12.2 Zip into the mods folder
Added the Server zip for the modpack into the mods folder.
Unable to start
Given the error:

The Minecraft server stopped within 5 seconds of starting, this is not a fault with AMP - you should check your Minecraft servers log files to find out why it is unable to start.

Reproduction Steps

  • Created the Mods folder
  • Added the forge 1.12.2 Zip into the mods folder
  • Added the Server zip for the modpack into the mods folder.
  • Configured Instance to Forge 1.12.2

Console:
Installer

16:49:58

Considering library org.scala-lang:scala-library:2.11.1

File exists: Checksum validated.

Considering library org.scala-lang:scala-parser-combinators_2.11:1.0.1

File exists: Checksum validated.

Considering library org.scala-lang:scala-reflect:2.11.1

File exists: Checksum validated.

Considering library org.scala-lang:scala-swing_2.11:1.0.1

File exists: Checksum validated.

Considering library org.scala-lang:scala-xml_2.11:1.0.2

File exists: Checksum validated.

Considering library lzma:lzma:0.0.1

File exists: Checksum validated.

Considering library java3d:vecmath:1.5.2

File exists: Checksum validated.

Considering library net.sf.trove4j:trove4j:3.0.3

File exists: Checksum validated.

Considering library org.apache.maven:maven-artifact:3.5.3

File exists: Checksum validated.

Considering library net.sf.jopt-simple:jopt-simple:5.0.3

File exists: Checksum validated.

Considering library org.apache.logging.log4j:log4j-api:2.15.0

File exists: Checksum validated.

Considering library org.apache.logging.log4j:log4j-core:2.15.0

File exists: Checksum validated.

Building Processors

The server installed successfully

You can delete this installer file now if you wish

Console

16:50:07

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(NativeMethodAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:568)

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

Make sure you have Java 8 selected for Forge 1.12.2.
Found under ConfigurationJava and Memory

It is configured as JDK 8 (Hostspot)

Try setting it to 17 (or any other version), wait a few seconds, then switch it back to Java 8