Jump to content

Forge Server Files not running


aarchos

Recommended Posts

When running my forge server file nothing happens, and when I use a run.bat file it returns the following error:
 

java -Xmx1024M -Xms1024M -jar forge-1.12.2-14.23.5.2860.jar --nogui
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.<init>(Launch.java:34)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        ... 6 more

My latest.log
 

[20:06:08] [Server thread/INFO]: Starting minecraft server version 1.12.2
[20:06:08] [Server thread/INFO]: Loading properties
[20:06:08] [Server console handler/ERROR]: Exception handling console input
java.io.IOException: The handle is invalid
	at java.io.FileInputStream.readBytes(Native Method) ~[?:?]
	at java.io.FileInputStream.read(FileInputStream.java:276) ~[?:?]
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:282) ~[?:?]
	at java.io.BufferedInputStream.read(BufferedInputStream.java:343) ~[?:?]
	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:270) ~[?:?]
	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:313) ~[?:?]
	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188) ~[?:?]
	at java.io.InputStreamReader.read(InputStreamReader.java:177) ~[?:?]
	at java.io.BufferedReader.fill(BufferedReader.java:162) ~[?:?]
	at java.io.BufferedReader.readLine(BufferedReader.java:329) ~[?:?]
	at java.io.BufferedReader.readLine(BufferedReader.java:396) ~[?:?]
	at nz$2.run(SourceFile:100) [minecraft_server.1.12.2.jar:?]
[20:06:08] [Server thread/WARN]: server.properties does not exist
[20:06:08] [Server thread/INFO]: Generating new properties file
[20:06:08] [Server thread/WARN]: Failed to load eula.txt
[20:06:08] [Server thread/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
[20:06:08] [Server thread/INFO]: Stopping server
[20:06:08] [Server Shutdown Thread/INFO]: Stopping server

My installer.log

JVM info: Eclipse Adoptium - 17.0.2 - 17.0.2+8
java.net.preferIPv4Stack=true
Found java version 17.0.2
Target Directory: .
Extracting main jar:
  Extracted successfully
Considering minecraft server jar
  Downloading library from https://launcher.mojang.com/v1/objects/886945bfb2b978778c3a0288fd7fab09d315b25f/server.jar
    Download completed: Checksum validated.
Downloading libraries
Found 1 additional library directories
Considering library net.minecraftforge:forge:1.12.2-14.23.5.2860
  Extracting library from /maven/net/minecraftforge/forge/1.12.2-14.23.5.2860/forge-1.12.2-14.23.5.2860.jar
    Extraction completed: Checksum validated.
Considering library org.ow2.asm:asm-debug-all:5.2
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library net.minecraft:launchwrapper:1.12
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.jline:jline:3.5.1
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library com.typesafe.akka:akka-actor_2.11:2.3.3
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library com.typesafe:config:1.2.1
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.scala-lang:scala-actors-migration_2.11:1.1.0
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.scala-lang:scala-compiler:2.11.1
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.scala-lang.plugins:scala-continuations-library_2.11:1.0.2_mc
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.scala-lang.plugins:scala-continuations-plugin_2.11.1:1.0.2_mc
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.scala-lang:scala-library:2.11.1
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.scala-lang:scala-parser-combinators_2.11:1.0.1
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.scala-lang:scala-reflect:2.11.1
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.scala-lang:scala-swing_2.11:1.0.1
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.scala-lang:scala-xml_2.11:1.0.2
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library lzma:lzma:0.0.1
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library java3d:vecmath:1.5.2
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library net.sf.trove4j:trove4j:3.0.3
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.apache.maven:maven-artifact:3.5.3
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library net.sf.jopt-simple:jopt-simple:5.0.3
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.apache.logging.log4j:log4j-api:2.15.0
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Considering library org.apache.logging.log4j:log4j-core:2.15.0
  Found artifact in local folder C:\Users\simon\AppData\Roaming\.minecraft\libraries
    Checksum validated
    Successfully copied local file
Building Processors
The server installed successfully
You can delete this installer file now if you wish

and finally my start.bat code
 

java -Xmx1024M -Xms1024M -jar forge-1.12.2-14.23.5.2860.jar --nogui
PAUSE

no mods are installed at the moment

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.