MATLAB Answers

Why do I receive License Manager Error -9?

23.405 views (last 30 days)
When I try to launch MATLAB, I get the following error:
ERROR: License checkout failed. Invalid host. License Manager Error -9

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 5 Jan 2021 at 5:00
Edited: MathWorks Support Team on 5 Jan 2021 at 16:46
The best way to resolve a License Manager Error -9 is by reactivating MATLAB with the activation client.
Windows
The activation client is located here:
C:\Program Files\MATLAB\R20XXx\bin\winXX\activate_matlab.exe
Mac
  • Open Finder.
  • Go to "Applications".
  • Right-click or control-click on the MATLAB application icon. (e.g. MATLAB_R2015b.app)
  • Click on "Show Package Contents".
  • Open "Activate.app".
Linux
The activation client is located here:
/usr/local/MATLAB/R20XXx/bin/activate_matlab.sh
Once you have launched the MATLAB activation client:
  1. Select "Activate automatically using the internet."
  2. Log into your MathWorks account.
  3. Select the correct license.
  4. The username field should auto-populate with the correct user name. Leave it as is.
  5. Confirm the activation information.
  6. Click "finish" to complete the activation process.
  7. Restart MATLAB.
Still seeing a License Manager Error -9?
  • The username in the license file does not match 
  • The Host ID in the license file does not match
  • You have a Designated Computer MATLAB license and MATLAB is already running under a different user account on this computer.
 Confirm your Username and Host ID using the activation client:
  1. Run the activation client and select "Activate manually without using the Internet."
  2. Choose “I do not have a license file. Help me with the next steps.”
  3. Copy your Host ID and Computer Login Name.
  4. Click the back arrow 2 times and choose “Activate automatically using the Internet” then input the appropriate username.
  5. Launch MATLAB using the appropriate user account.
Activation client requires elevated privileges to run? Connection error when Activating automatically? Still seeing a License Manager Error – 9?
How do I activate MATLAB without an internet connection?

  126 Comments

Lakshmikanth K
Lakshmikanth K on 3 Jan 2021 at 2:29
Is it a problem if am using the same mathworks account in two different OS
Walter Roberson
Walter Roberson on 3 Jan 2021 at 3:19
To launch the activation client on Linux, go into terminal ( https://maker.pro/linux/tutorial/basic-linux-commands-for-beginners ) and cd to the appropriate directory such as /usr/local/MATLAB/R20XXx/bin . Once there,
sh ./activate_matlab.sh
You might possibly need
sudo sh ./activate_matlab.sh
Walter Roberson
Walter Roberson on 3 Jan 2021 at 14:45
There is no problem at all using the same Mathworks account or the same license with two different OS.
However, each different kind of license has a limitation on the number of simultaneous activations that you can have on different hardware. Not different OS. If you dual boot then unless you used a fairly old MATLAB for WIndows (that keyed off the disk serial number) then MATLAB will notice that the MAC addresses are the same and will permit the activation.
(If you use a virtual machine that uses a different MAC address, then you could end up "using up" an activation as MATLAB might consider them to be different machines.)

Sign in to comment.

More Answers (79)

Dandan Zhang
Dandan Zhang on 12 Mar 2016
Note: It's your Windows User Name rather than Microsoft Account Name.
You can determine your Windows username as follows:
  1. 1.While sitting at the host computer with press and hold the Windows key and press the letter R on your keyboard.
  2. 2.The Run box will appear.
  3. 3.In the box, type cmd and press Enter. The command prompt window will appear.
  4. 4.Type echo %username% and press Enter. (there is a space between echo and %username%)
  5. 5.Your current username will be displayed.

  37 Comments

Sign in to comment.


Scott Ruffner
Scott Ruffner on 25 Feb 2017
Edited: Scott Ruffner on 25 Feb 2017
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.

  14 Comments