Maltego runs on Java 8, Java 11 and Java 17.
We recommend that you use the 64-bit version of Java, and use the latest release from Oracle.
How to configure Maltego if multiple versions of Java is installed: How do I configure the version of Java used by Maltego?