#start server.bat file not working
21 messages · Page 1 of 1 (latest)
C:\Program Files\Common Files\Oracle\Java\javapath\java.exe
C:\Program Files (x86)\Common Files\Oracle\Java\java8path\java.exe
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
java version "22.0.1" 2024-04-16
Java(TM) SE Runtime Environment (build 22.0.1+8-16)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:109)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
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)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
... 3 more
Press any key to continue . . . ``` this is what i'm getting
u have the wrong java version
u need java 8 for 1.12.2 minecraft
if u already have java 8 u need to set that as default in java path
Ooooh okay
I installed java again just to be sure and it made me delete java 8
I just have to figure out how to make it as the default path then
u can delete the other java version or google how to set ur default java path
changing the java path in the bat file wont work for this specific modpack for some reason
I changed it and I'm still getting the same issue
the path is already there which is strange
I'm just gonna uninstall and reinstall java then
OOOH shit okay
I figured it out but now I'm getting a heap error
I just uninstalled java 22 for the time being
ah CAUSE IT'S 32 BIT RAAAHHH
got it working
thanks