Ubuntu Minecraft Server java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader

后端 未结 3 606
无人及你
无人及你 2021-01-27 09:21

Im trying to run my modded mc server. It works on wondows but when I try to run it on ubuntu it gives me this error:

    saif@Saif-Ubuntu:~/Desktop/Minecraft Serv         


        
相关标签:
3条回答
  • 2021-01-27 10:09

    Forge, as i know right now, sadly only supports Java 8 Development Kits. Be sure that you're running JDK8 by typing java --version. Try uninstalling other versions or specify which version shall be used. I suggest reading this

    0 讨论(0)
  • 2021-01-27 10:13

    I figured out how to switch java versions without uninstalling any: 'sudo update-alternatives --config java'

    Thanks to Joseph Sible, Novarch, and Likqez for pushing me in the right direction.

    0 讨论(0)
  • 2021-01-27 10:14

    This issue occurs when you don't use JDK 8, please try using it again, uninstall JDK 11 and check your JDK version with java -version.

    0 讨论(0)
提交回复
热议问题