MATLAB: Can I run MATLAB 7.11 (R2010b) with JVM 1.5 (older version) by using the MATLAB_JAVA environment variable

1.51.6changeearlierenvironmentjrejvmMATLABmatlab_javavariableversion

I would like to run my MATLAB 7.11 (R2010b) using JVM 1.5 by setting the MATLAB_JAVA environment variable. MATLAB 7.11 (R2010b) normally ships with the newer JVM 1.6. Is this switch possible?

Best Answer

This is not possible and MATLAB will fail to start unless the '-nojvm' option is specified.
Although it is recommended not to change the MATLAB JVM, setting the MATLAB_JAVA environment variable to later JVM versions than the MATLAB shipped version should still work.