= Problems when launching server from .bat file but not when launching from the fabric-server-launch.jar =

This is what it says everytime I try to start my server via a bat file
D:\MinecraftServs\1.13.1 Island Surv - kopie>java -Xms1G -Xmx8G -jar fabric-server-launch.jar nogui
[22:28:07] [main/INFO]: Loading for game Minecraft 1.16.2
[22:28:07] [main/INFO]: [FabricLoader] Loading 2 mods: [email protected], [email protected]+build.206
[22:28:07] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.1 Source=file:/D:/MinecraftServs/1.16.1%20Island%20Surv%20-%20kopie/fabric-server-launch.jar Service=Knot/Fabric Env=SERVER
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.RuntimeException: java.lang.reflect.InvocationTargetException
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:194)
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.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.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:192)
 9 more
Caused by: java.lang.BootstrapMethodError: java.lang.ExceptionInInitializerError
at net.minecraft.class_5458.(class_5458.java:50)
at net.minecraft.class_2378.(class_2378.java:237)
at net.minecraft.class_2966.method_12851(class_2966.java:42)
at net.minecraft.server.Main.main(Main.java:88)
 14 more
Caused by: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.ensureError(J9VMInternals.java:147)
at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:136)
at java.lang.invoke.MethodHandle.getCPMethodHandleAt(Native Method)
at java.lang.invoke.MethodHandle.getAdditionalBsmArg(MethodHandle.java:869)
at java.lang.invoke.MethodHandle.resolveInvokeDynamic(MethodHandle.java:948)
 18 more
Caused by: java.lang.NullPointerException
at net.minecraft.class_5458.method_30562(class_5458.java:88)
at net.minecraft.class_5468.method_30600(class_5468.java:20)
at net.minecraft.class_5468.(class_5468.java:13)
 21 more
D:\MinecraftServs\1.16.1 Island Surv - kopie>pause
Press any key to continue . . 

Any help would be appreciated since i am not very used to running servers
This is 1.16.2 btw

you probably have more than one version of java installed. uninstall all versions of java and install this one:
httpsfabricmc.net/wiki/player:tutorials:java:windows
== About Community ==
Members
Online
== Similar to this post ==
r/OneNoteProblems exporting OneNote notebook to .pkg file100%210/18/2020
r/ProxmoxProblem when updating proxmox80%65/30/2021
r/archlinuxProblems mounting ZFS root pool on boot67%2May 30
r/tryhackmeProblems connecting to OpenVPN83%810/4/2021
r/ElektronProblems related to playing video and audio files after100%3Aug 18
r/fabricmcYay or nay?95%266d
r/fabricmcCan anyone tell me what mod is making my weapon bug out?92%33d
r/fabricmcHow Can I Fix this100%11d
r/fabricmcHelp with low fps on base100%93d
r/fabricmcmy mc block breaking is slow91%83d
r/fabricmcDistant Horizons doesn't/takes ages to update chunks100%15d
r/fabricmcI get this error when i try to open minecraft with100%133d
r/fabricmcLooking for a Coordinates plugin.89%12d
r/fabricmcEssentials & Bedrockify buttons overlapping100%35d
r/fabricmcHow