For me it was making sure my version of Java on my machine was default to 17 (not 18 - which was my default) and I was able to get the installer to run.
I'm on Manjaro so the command is different but it would be something like update-alternatives, and I'm using jre17-openjdk
update-alternatives...