This error may occur if you have set a MATLAB_JAVA environment variable for a previous version of MATLAB. If this variable is set, you will need to unset it in order to run MATLAB. For more information on MATLAB_JAVA, see one of the following articles:
This error can also be caused by a java.opts file on the MATLAB path. If you are using Windows and you have checked your path for java.opts files, but you are still receiving this error, make sure the "Start in" field in your shortcut is set to a directory that doesn't contain a java.opts file.
If MATLAB_JAVA is not set and java.opts is not present, then your MATLAB installation may be corrupt.Uninstall andreinstall MATLAB to repair your MATLAB installation.