Closed Ygarr closed 1 year ago
You probably installed java 8 in the past and it's set as your default java version somewhere.
If you type java -version
in a terminal (cmd.exe
) you will see that it uses java 8 instead of java 18.
This is a common problem on windows and it's a bit annoying to get rid of the java 8 installation.
Thanks I removed all old javas 8 from windows(in cmd I got java 18 though), but now I have:
java -jar .\Cubyz.jar
Exception in thread "main" java.lang.NoClassDefFoundError: pixelguys/json/Json
at cubyz.utils.Logger.
I recommend to use the launcher to run the game.
The Cubyz.jar
file requires a bunch of libraries and assets and cannot simply be launched with java -jar
.
The launcher takes care about all of this and stores the libraries and assets in .cubyz
in your home directory.
installed 18 java, but said "it`s old need 11 at least not 8"