I had this issue as well on Debian 13 with OpenJDK 25. I solved it by running ./set-client-paths.sh after launching the game.