MATLAB supports OpenJDK Java 8 for releases R2020a and later. Since R2023a, MATLAB also supports OpenJDK Java 11. More details about what specific applications are supported for the most recent MATLAB release are listed on the following page:
By default, MATLAB ships with the Oracle® version 8 JVM™. However, you can change it to use an OpenJDK JVM. For instructions, select the appropriate link below.
MATLAB Compiler SDK:
Windows:
Linux:
Mac: