Follow

下午想玩Minecraft,结果发现AdoptOpenJDK 11没有自带JavaFX,又去安装了OpenJFX。启动的时候还要带上JavaFX的东西,遂写了个bat,没想到cmd真是比Bash差远了。好不容易把启动器开起来了,运行游戏,结果刚启动就抛了个java.lang.ClassCastException,我想1.12.2大概确实是不支持Java11。我不玩了。

Want play Minecraft this afternoon, ended up with missing JavaFX. After installing OpenJFX, I wrote a bat file to start the launcher to deal with module things, then I found Microsoft's CMD is just really user unfriendly compared with linux's bash. Long live the bash.

After finally finished the bat, open the HMCL launcher, launch the game, then, boom. Exception in thread "main" 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').

Fine, rather than messing up the development jdk11, I'd just give up. Probably 1.12.2 **does** not support Java11.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.