oh yes also, some people have mentioned it having better compatibility with java 8, so if the most recent version doesn't work, try that!
by the way i forgot to add some information ("^^)
i'm using Linux Mint 20.3 and i think i have Java 11 (it's an openjdk version)
i'm still a beginner in linux mint, and i don't know how to install java 8
Edit: Finally can run the game by installing Java 8 :D
this is the tutorial to install java 8:
https://easylinuxtipsproject.blogspot.com/p/java.html