Exception in thread main java lang runtimeexception failed to setup fabric server environment

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

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

21w42a Failed to setup Fabric server environment #546

21w42a Failed to setup Fabric server environment #546

Comments

After installing a fabric server with java -jar installer.jar server -snapshot -loader 0.11.7 -mcversion 21w42a -downloadMinecraft . I tried starting the server with java -Dlog4j2.disableJMX=true -jar fabric-server-launch.jar and java -jar fabric-server-launch.jar . I was also logged into root while installing and running.

Fabric Server Start Error
Exception in thread «main» java.lang.RuntimeException: Failed to setup Fabric server environment! at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:58) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: An exception occurred when launching the server! at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:116) at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:56) Caused by: java.lang.RuntimeException: An exception occurred when launching the server! at net.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:70) at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:114) . 1 more Caused by: 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.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:68) . 2 more Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/LogManager at net.fabricmc.loader.launch.common.FabricLauncherBase.(FabricLauncherBase.java:48) at net.fabricmc.loader.launch.knot.KnotServer.main(KnotServer.java:27) . 7 more Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.LogManager at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) at net.fabricmc.loader.launch.server.InjectingURLClassLoader.loadClass(InjectingURLClassLoader.java:57) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) . 9 more

Читайте также:  Java variable names string

Host Information: OS: Fedora 34 (Server Edition) x86_64 Kernel: Linux 5.13.9-200.fc34.x86_64
JVM’s used
openjdk 17 2021-09-14 OpenJDK Runtime Environment 21.9 (build 17+35) OpenJDK 64-Bit Server VM 21.9 (build 17+35, mixed mode, sharing)

openjdk version «1.8.0_302» OpenJDK Runtime Environment (build 1.8.0_302-b08) OpenJDK 64-Bit Server VM (build 25.302-b08, mixed mode)

openjdk 11.0.12 2021-07-20 OpenJDK Runtime Environment 18.9 (build 11.0.12+7) OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7, mixed mode, sharing)

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

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

Failed to setup Fabric server environment! #436

Failed to setup Fabric server environment! #436

Comments

I tried making a Fabric server but this error apperars:
Exception in thread «main» java.lang.RuntimeException: Failed to setup Fabric server environment! at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:52) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: An exception occurred when launching the server! at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:108) at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:50) Caused by: java.lang.RuntimeException: An exception occurred when launching the server! at net.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:64) at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:106) . 1 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:62) . 2 more Caused by: java.lang.UnsupportedClassVersionError: net/minecraft/server/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at net.fabricmc.loader.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:163) at java.lang.ClassLoader.loadClass(Unknown Source) at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:224) at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:146) at net.fabricmc.loader.launch.knot.KnotServer.main(KnotServer.java:28) . 7 more

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

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

20w20a: Failed to setup Fabric server environment #240

20w20a: Failed to setup Fabric server environment #240

Comments

I had an existing Fabric server on 20w19a , I deleted the .fabric folder and then ran:

java -jar fabric-installer-0.5.2.40.jar server -snapshot -downloadMinecraft

I have no mods installed. The server crashed with a Java runtime exception:

[main/INFO]: Loading for game Minecraft 20w20a [main/INFO]: Fabric is preparing JARs on first launch, this may take a few seconds. [main/INFO]: [FabricLoader] Loading 2 mods: minecraft@1.16-alpha.20.20.a, fabricloader@0.8.2+build.194 [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8 Source=file:/server/java/fabric-server-launch.jar Service=Knot/Fabric Env=SERVER [main/ERROR]: Unable to bootstrap registry 'minecraft:entity_type' [main/ERROR]: Unable to bootstrap registry 'minecraft:feature' Exception in thread "main" java.lang.RuntimeException: Failed to setup Fabric server environment! at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:51) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: An exception occurred when launching the server! at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:107) at net.fabricmc.loader.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:49) Caused by: java.lang.RuntimeException: An exception occurred when launching the server! at net.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:63) at net.fabricmc.loader.launch.server.FabricServerLauncher.setup(FabricServerLauncher.java:105) . 1 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.fabricmc.loader.launch.server.FabricServerLauncher.launch(FabricServerLauncher.java:61) . 2 more Caused by: java.lang.ExceptionInInitializerError at net.minecraft.class_2378.method_10242(class_2378.java:94) at net.minecraft.class_2378.method_10238(class_2378.java:132) at java.util.LinkedHashMap$LinkedEntrySet.forEach(LinkedHashMap.java:671) at net.minecraft.class_2378.(class_2378.java:131) at net.minecraft.class_1299.method_5895(class_1299.java:144) at net.minecraft.class_1299.(class_1299.java:150) at net.minecraft.class_3770.(class_3770.java:23) at net.minecraft.class_3031.(class_3031.java:64) at net.minecraft.class_3232.(class_3232.java:77) at net.minecraft.class_5285.(class_5285.java:64) at net.minecraft.server.MinecraftServer.(MinecraftServer.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192) at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:140) at net.fabricmc.loader.launch.knot.KnotServer.main(KnotServer.java:26) . 7 more Caused by: java.lang.NullPointerException at net.minecraft.class_2075.(class_2075.java:44) at net.minecraft.class_1972.(class_1972.java:9) . 25 more 

Running java -jar fabric-installer-0.5.2.40.jar server -mcVersion 20w19a -downloadMinecraft to downgrade, the server still runs as normal. Is it possible I am doing something wrong, or is Fabric not compatible with 20w20a yet?

I’m running Ubuntu 20.04 LTS with OpenJDK 1.8.

The text was updated successfully, but these errors were encountered:

Источник

Оцените статью