Why do I receive the error "License File Error: Unable to read license file" when performing a silent installation?
15 views (last 30 days)
Show older comments
MathWorks Support Team
on 9 Sep 2020
Edited: MathWorks Support Team
on 23 Dec 2022
During a silent installation, the output log file states an error message similar to the one below:
License File Error: Unable to read license file at com.mathworks.install_core_common.MATLABInstallerExceptionUtil.getValidationException(MATLABInstallerExceptionUtil.java:20) at com.mathworks.matlab_installer.operations.LicenseFileSelectionOperations.showInlineException(Unknown Source) at com.mathworks.matlab_installer.operations.LicenseFileSelectionOperations.getLicenseString(Unknown Source) at com.mathworks.matlab_installer.services.LicenseFileSelectionServices.validatedLicenseFile(Unknown Source) at com.mathworks.installservicehandler.context.ExceptionInterceptor.invoke(ExceptionInterceptor.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.mathworks.installservicehandler.JsonPassThroughResponseWrapper.getData(JsonPassThroughResponseWrapper.java:24) at com.mathworks.installservicehandler.JsonPassThroughResponseWrapper.getData(JsonPassThroughResponseWrapper.java:10) at com.mathworks.installservicehandler.InstallServiceHandlerClient.executeService(InstallServiceHandlerClient.java:18) at com.mathworks.matlab_installer.MatlabInstallerClient$4.executeService(Unknown Source) at com.mathworks.installjscommon.InstallerClientUtility.executeGetNextStateInSequence(Unknown Source) at com.mathworks.matlab_installer.MatlabInstallerClient.clientMain(Unknown Source)Caused by: java.lang.Exception: License File Error: Unable to read license file ... 15 more
Accepted Answer
MathWorks Support Team
on 23 Dec 2022
Edited: MathWorks Support Team
on 23 Dec 2022
This error message typically appears when using a network.lic license file instead of a license.dat file in the licensePath field for the installer_input.txt
If the remainder of the output log file indicates "End - Successful" on the last line,
(or if the installation log file indicates a successful installation)
Where are the MATLAB Installation and Activation log files located?
The output file may be reporting a false error. This is currently being investigating by MathWorks.
The installation may have completed successfully and may still require MATLAB to be activated.
0 Comments
More Answers (0)
See Also
Categories
Find more on Install Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!