Not sure what it means but I get this. I’m using Java 8 not sure if it has to be a special version.
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:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
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
You’re not using Java 8, which I can tell here because some of the packages start with java.base/, if you run java -version you should see which version you’re actually running.
Just did that and pasted it in the destination bar so it leads it to me but the Java file no longer exists I’m guessing because I already uninstalled it in the Add or Remove programs.
No such command, its all uninstalled though windows.
If i was you, i would uninstall Java 8, and then install AdoptOpenJDK 8 which has the option to install to the JAVA_HOME (you must tick the option) in the installer
I am so so sorry, I just realized I didn’t search JDK in the uninstall program I just uninstalled it now when I run java -version nothing happens so I’m going to go download java 8.