Why do I receive MathWorks Licensing Error 9?
Mostrar comentarios más antiguos
Why do I receive the following error:
MathWorks Licensing Error 9
A licensing error occurred while trying to use <PRODUCTNAME>.
The host ID in the license file does not match your computer's host ID.
or
MathWorks Licensing Error 9
A licensing error occurred while trying to use <PRODUCTNAME>.
Your username is not authorized to use this license.
Respuesta aceptada
Más respuestas (5)
Dandan Zhang
el 12 de Mzo. de 2016
Editada: MathWorks Support Team
el 29 de Oct. de 2025
134 votos
Note: It's your Windows User Name rather than Microsoft Account Name.
You can determine your Windows username as follows:
- 1.While sitting at the host computer with press and hold the Windows key and press the letter R on your keyboard.
- 2.The Run box will appear.
- 3.In the box, type cmd and press Enter. The command prompt window will appear.
- 4.Type echo %username% and press Enter. (there is a space between echo and %username%)
- 5.Your current username will be displayed.
2 comentarios
Walter Roberson
el 29 de Mzo. de 2017
See the above on "How do I activate MATLAB?".
After you enter your Mathworks account information, you will get a window asking which user name will be used to run the program; enter your windows username at that place.
Walter Roberson
el 29 de Ag. de 2021
Windows-R . When it brings up the small box to type in a command, use the command
cmd
This will cause a full cmd.exe to be launched. When that comes up, at the (Windows) command window, enter the command
echo %username%
The echo does not go into the MATLAB command window; it goes into the Windows command window.
(You can bring up Powershell instead of cmd if you prefer.)
Miguel Angel Benavides Morales
el 4 de Jun. de 2020
35 votos
Para usuarios de windows 10 Home single language: Presionar la tecla windows, buscar Matlab, en la parte inferior debajo de la pestaña aplicaciones debe aparecer Activate MATLAB. Luego ingresar con usuario y contraseña, darle activar licencia y dejar el nombre del usuarios como aparece (por cambiar ese nombre al momento de la instalación o cambiar el nombre de usuario o de usuario en el pc es que aparece el error), luego seguir los pasos de activador y listo.
Scott Ruffner
el 25 de Feb. de 2017
Editada: Scott Ruffner
el 25 de Feb. de 2017
28 votos
I was able to fix the error on my MacBook Pro with the advise above from Scott on the MathWorks Installation & Licensing Support team. I've added a few tips and step by step clarifications for others that may have the same issue.
I was receiving the -9 error. I'm running OS X Yosemite 10.10.5
It seems that you need to know which user on your Mac you are using. To find this out open a terminal window and type "whoami". Copy that result. You will need that at last step of the activation process.
I installed MATLAB in the /Applications folder.
In the terminal window go to wherever you installed MATLAB and find the bin sub-directory. For me this was /Applications/MATLAB_R2016b.app/bin
In the terminal I ran the activation script again by typing "./activate_matlab.sh"
Then I went through the steps "Login to MathWorks" [email/password] >> Next Selected the pre-selected license. >> Next Provide a user name/Login Name: (Paste the user name that you copied when you ran whoami above.)
Then open a new finder window go to Applications and try to run MATLAB_R2016b. It opened this time without errors hope this helps.
Note for Linux users: when I installed MATLAB on my Manjaro OS, I was required to have 'root' as my username, rather than my actual username.
The solution to this (if you're using a terminal, which is the only way I can access MATLAB), is to open MATLAB as 'root' by entering 'sudo su' (which changes you to root), and then typing 'matlab'.
P.S. The '' marks on words and phrases like 'root', 'sudo su' and 'matlab' are written in this post just to highlight the specific terms and commands. Quotes ('') should not be included when inputting commands into the Terminal.
2 comentarios
Walter Roberson
el 22 de Oct. de 2016
Lovuit Chen comments to Scott:
This helps!! Thanks
Luis Ignacio Gómez-Jordana Martín
el 12 de En. de 2019
It work mate. I love you. You save my night, going to sleep finally XD
Andrew Janke
el 3 de Oct. de 2019
7 votos
Ouch, dude. That's not a great user experience. I got this same problem when I upgraded my iMac to a newer hardware version. Props to you for the "Troubleshoot" button bringing up this (relevant, correct) answer, but seems like the license transfer process could be made easier, especially for the case of restoring a computer from backup to new hardware.
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!