MATLAB Answers

0

Why do I receive License Manager Error -1?

Why do I get the following error:
License Manager Error -1.
Cannot find license file

Tags

No tags entered yet.

Products

1 Answer

Answer by MathWorks Support Team on 11 Jan 2019
Edited by MathWorks Support Team on 11 Jan 2019
 Accepted Answer

This error is either a result of a missing license.dat file, or not having read permissions to the license.dat file.
To check the license file, please refer to solution 1-63ZIR6 "Where are the license files for MATLAB located?"
If you're using a network installation, contact your license administrator for a new license file.
If you have an standalone license try starting MATLAB from the bin folder.
Windows - C:\Program Files\MATLAB\R20XXx\bin\matlab.exe
Linux - /usr/local/MATLAB/R20XXx/bin//matlab
Mac - /Applications/MATLAB_R20XXx.app/bin/matlab
If MATLAB starts properly, delete the shortcut and create a new one.
How do I create a shortcut or link to MATLAB?
If you are receiving this error when entering a PLP for MATLAB R12 or R13 on Windows, this is a result of using a passcode generated from the license center. These PLPs will work as far back as R14. Any earlier passcodes will need to be requested from our Customer Service team here:

  2 Comments

I was directed here from my own license failure and cannot find any corresponding information myself.
My academic installation was running fine for several weeks, but now I receive this error when starting matlab:
MATLAB is selecting SOFTWARE OPENGL rendering.
License checkout failed.
License Manager Error -1
The license.dat file cannot be found.
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/R2019a/1
Diagnostic Information:
Feature: MATLAB
License path: -prefersoftwareopengl
Licensing error: -1,359. System Error: 2
I have tried deactivating and reactivating matlab to regenerate the license file to no avail. I had no problem with initial activation using the online system. I believe the error might have been caused by automating the bash command "killall MATLAB" to terminate stalled processes during pipeline processing that I've been performing, but I'm not sure.
Please contact us at the following link so we can troubleshoot further.
https://www.mathworks.com/support/contact_us.html

Sign in to comment.