After struggling with this myself, I was able to install it using this method. I already had Java 17 installed alongside another version, and found it wasn't necessary to reconfigure my system, I only had to point 'INSTALL4J_JAVA_HOME_OVERRIDE=' to the Java 17 installation. I'm still on Ubuntu...