Maltego runs on Java 8 and Java 11.
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?