Instructions for a code -9 error, wrong Host ID on OS-X El Capitan
I have a student version of MatLab_R2012a_student and it wouldn’t run after upgrading to OS-X El Capitan, I got an error code -9.
The instructions above wouldn’t work, after removing the activation folder and license.dat file it wouldn’t run the Activation program, it gave me an error “There was an unexpected exception “null” See log file . . . .”
With help from MatLab I have compiled these instructions:
1) Put activation folder back into MatLab.app folder
2) Get new Host ID
You might not need to do this as the error from MatLab might give you the Host ID its looking for. Then again you might want to check anyway.
In the Terminal window, enter the following command:
ifconfig en1 | grep ether
The MAC address is the value listed next to "ether".
You need this later to get a new license.
3) Deactivate current license
goto license center
click on license
click on Install and Activate tab
click on Deactivate a Computer near the bottom
click on the blue X by the license you are ‘updating’
4) Then get new license file
back to license centre and Install and Activate tab
click on Activate to Retrieve License File near the bottom
enter info on release, OS used, and HOSTID (use lower case, no “:”)
Activation Label is used only on the Mathworks website to lists licenses you have
Download the license file
5) License file will have extension of .lic.txt, probably need to change that to .dat
6) Right click on MatLab icon, then choose show contents
Put license.dat file into the folder licenses
Close Matlab.app ‘folder’
MatLab should start, well at least it did for me.
(Note there is also a bug patch program that needs to be used to run MatLab prior to R2014 after upgrading to Yosemite at https://www.mathworks.com/support/bugreports/1098655)