为什么我不断提示激活当我try to launch MATLAB?

803 views (last 30 days)
I am trying to activate and use MATLAB. Every time I start MATLAB, it prompts me to activate, even though I complete the process and it states activation is complete each time.
为什么我不断提示激活当我try to launch MATLAB?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 16 Feb 2023
Edited:MathWorks Support Team on 16 Feb 2023
当启动MATLAB,系统将提示您采取行动ivate if no valid license files can be found on the license file search path. The most common reasons that MATLAB will continuously prompt you for activation are:
  • Activating to the wrong computer login name (username)
  • Insufficient user privileges
  • Wrong file type
  • Activating to an expired or invalid license file

Activating to the wrong computer login name (username)

For Individual licenses, the MathWorks Installer and Activation Client will attempt to place the license file into the directory of the user specified. If the user specified is not the user attempting to launch MATLAB, then MATLAB will not be able to locate the license file. This is most commonly seen when administrator credentials are used to install or activate due to to limited user permissions, and as a result, the license file is stored under the administrator account.To resolve this,verify the usernameof the MATLAB user, thenreactivate MATLABwith the correct username.

Insufficient User Privileges

When activating MATLAB, you must have sufficient user privileges to create the required licenses folder and create the license file. To verify that the license file is being created, browse to the location where the license files are stored for your license option and operating system type:
If you do not see a license file, or the licenses folder, you may not have sufficient privileges. You may resolve this by activating the license manually then placing the license file into the appropriate directory found in the link above:
Note: You may be required to create the licenses folder for R2020a and newer. If so, verify that the name matches thepath found in the articleabove. For example, Individual licenses will be located in the folder R20XXx_licenses, with the XXx changed to match the release.

Wrong file type

License files must be a LIC file. LIC files have a .lic extenstion, e.g. license.lic or network.lic. If the license file has any other extension, such as .txt, MATLAB may not be able to read the license, and you will be prompted to activate.
To resolve this, change the file extension to '.lic'.
Note: The exception to this is DAT files used by network License Managers.

Activating to an expired or invalid license file

If the license file is expired or invalid, MATLAB will prompt you to activate. To resolve this, download a new license file.
15 Comments
undefined undefined
undefined undefined on 18 Mar 2021
i have been trying everything on this thread and nothing worked. ive reinstalled the program 3 times in different locations on my computer and nothing works, would appriciate a solution if any other ideas come to mind.

Sign in to comment.

More Answers (9)

Adesh Prasad
Adesh Prasad on 26 Nov 2020
Had same problem. I think this is the answer for most people..
I'm logged in as a regular User, not my Administrator user account. But Matlab insisted to use my Adminstrator user account name when activating, even though I was installing in my regular user account.
So to run Matlab from my regular user account, need to right click on Matlab icon, say run as Administrator, then Matlab opens without opening Activation window every time.
Hope this helps.
13 Comments
Lucas
Lucas on 24 Mar 2023
Yep, worked for me too. Thanks. Right click on Matlab, select Run as Administrator , enter Admin PWD and it works.

Sign in to comment.


soxib abduxalilov
soxib abduxalilov on 20 May 2018
I am trying to activate and use MATLAB. Every time I start MATLAB, it asks me to activate, even though I complete the process and it states activation is complete each time. Why am I continuously prompted to activate when I try to launch MATLAB?
4 Comments

Sign in to comment.


Faruk CANOGLU
Faruk CANOGLU on 15 Sep 2021
I had the same problem, I fixed my problem in an another way.
I had the licenses at AppData\Roaming\MathWorks\MATLAB\R2021a_licenses but there were no folder named licenses in "C:\Program Files\MATLAB\R2021a\ , so I added new folder named "licenses" then I coppied the licenses from "AppData\Roaming\MathWorks\MATLAB\RXXXXa_licenses" up here to "C:\Program Files\MATLAB\R2021a\lincenses" location. It's worked. I hope everyone can solve their problem.
3 Comments
Walter Roberson
Walter Roberson on 9 Nov 2021
Edited:Walter Roberson on 9 Nov 2021
There is a search order for the licenses; if new licenses ended up in the secondary location but there were old licenses in the first location, then there could be challenges.
Also, the sequence Faruk followed could potentially have ended up with the appropriate directory being user-writable when the normal installation path might potentially have left it unwritable by normal users.

Sign in to comment.


Seungyoun Lee
Seungyoun Lee on 2 Jul 2019
Edited:Seungyoun Lee on 2 Jul 2019
They do not want to resolve customer's problem. Why matlab developers did not try to solve the problems? Why? Is it customer's problem? or Matlab's fault?
2 Comments
Walter Roberson
Walter Roberson on 2 Jul 2019
Seungyoun Lee : what leads you to understand that "they do not want to resolve customer's problem" ? Mathworks actively updates the response here to add information, clarify, and rephrase for better understanding.
Mathworks offers free support for installation problems.

Sign in to comment.


Daniel Guterman
Daniel Guterman on 1 Mar 2021
every time i start the matlab it asks me to do activation and i alreadyy done it many times. what can i do to solve this problem?
3 Comments
Franciszek Fornal
Franciszek Fornal on 14 Jan 2023
For people in the future with this problem. In my situation, in the last window of the activation, I had admin's name as user, that's why I had to open matlab as admin, if you change that username to your own, matlab will find your licence, and probably everything will be good.

Sign in to comment.




durga sadasivuni
durga sadasivuni on 26 Jun 2018
I am trying to activate and use MATLAB trial. Every time I start MATLAB, it asks me to activate, even though I done with all the process and it states activation is complete each time.Even I did every process mentioned above still getting the same problem. Why am I continuously prompted to activate when I try to launch MATLAB,please help me out
3 Comments
Walter Roberson
Walter Roberson on 8 Nov 2018
Richard, the volunteers who answer questions here do not have access to the license database and do not have access to your system. We are also not trained on the various ways to investigate this problem. It is recommended that you contact Mathworks for free installation assistance.

Sign in to comment.


Artur MKRTCHYAN
Artur MKRTCHYAN on 2 Jun 2021
Edited:Artur MKRTCHYAN on 2 Jun 2021
perhaps it will be useful for some. In my case I had the same problem. The steps to follow to launch the MatLab correctly.
  1. $sudo whoami(you copy the result name. Is will berootby default)
  2. $ suodo matlab(you finish the activation process with 1. step result as login name)
  3. $ sudo su
  4. $ matlab
I d'ont know why but second $ sudo matlab open again the activation process.I think it's a problem of access rights to the activation file. I haven't tried changing the rights to the activation file, but that might work too.

s manbetx 845


Release

R2008a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!