MATLAB: Did My MATLAB installation fail, with the following error in the installation log file: Java.io.Fi​leNotFound​Exception (The system cannot find the path specified)

When I am installing MATLAB R2014a or newer, the installation fails. When I check the installation log file, there are errors similar to the following:
Java.io.FileNotFoundException [FileName] (The system cannot find the path specified)
What can I do to resolve these errors so I can complete my MATLAB installation?

Best Answer

These types of installation errors may occur if some of the files that were being downloaded by the MATLAB installer were corrupted by an antivirus or security program on the system during the download or installation process. The security software on your system may have scanned the files and changed their file size. Also, some antivirus programs will take an exceedingly long time to scan certain files, and the installation may time-out or may detect that a file is missing if the security software is still working with the file in question.
To resolve the problem, you should disable any antivirus or security software on the system, and then run the installer again. If the installer asks you whether or not you would like to overwrite any existing files, answer 'Yes' to overwrite these files, as some of the existing files may be corrupted or damaged from the previously failed installation. If you are unable to disable your security software, please contact your IT department for assistance.
If this is a Windows system, you may also try rebooting the system into Windows Safe Mode with Networking, and then attempt the installation while in Safe Mode. This will prevent any other applications that may have interfered with the installation from loading when Windows starts up. If you have already tried disabling your antivirus or security software but still experienced the same problem, please try rebooting into Windows Safe Mode with Networking and then try the installation again.
If you continue to experience the same problem after disabling your security software and trying the installation in Safe Mode, please contact MathWorks support for further assistance.
Related Question