MATLAB: Can I use an earlier JDK version than the MATLAB JRE version to compile deployed components using MATLAB Builder JA

1.51.6compatibilityjava_homejavacjdkjrejvmMATLABMATLAB Compiler SDKoldershipversion

I have MATLAB 7.11 (R2010b) which ships with the Java Runtime Environment (JRE) version 1.6. Using Builder JA, I would like to compile a deployed Java component using Java Development Kit (JDK) version 1.5, set using the environment variable JAVA_HOME. Is this possible?

Best Answer

This is not possible. JDK versions used to compile Java components should be the same or later than the JRE that MATLAB ships with.