What does the license_info.xml file look like for New Licensing Technology and where should it be saved?

60 Ansichten (letzte 30 Tage)

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 1 Mär. 2024
Bearbeitet: MathWorks Support Team am 1 Mär. 2024
You may need to confirm that your license_info.xml is formatted correctly and in the correct folder for new licensing technology. It needs to be in your device's license folder and formatted in a certain way. We'll first check to make sure that it is in the correct folder and once we have, we'll confirm its contents are correct.
Please note that this may not entirely resolve the issue(s) you may be having, it simply ensures that you have this file in correct place and formatted correctly.
Section 1 - Location Confirmation

Windows

  1. Go to the folder where you have MATLAB installed. If you don't know where this is, it is usually "C:\Program Files\MATLAB\R20XXx". The "X"s will need to be replaced with your release of MATLAB. For example, if you are using R2022b, you'd replace R20XXx with R2022b.
  2. Go into the licenses folder. If you don't see a licenses folder, you may create one with the name "licenses" without quotation marks.
  3. You should see a file labeled "license_info.xml" inside of this folder. Proceed to "Section 2 - Further Location Confirmation" regardless of whether you do or do not.

MacOS

  1. Open Finder
  2. Go to the folder where you have MATLAB installed. If you don't know where this is, it is usually your Applications folder.
  3. Find your MATLAB release. Right-click or control-click on the app and then select "Show Package Contents".
  4. Go into the licenses folder. If you don't see a licenses folder, you may create one with the name "licenses" without quotation marks.
  5. You should see a file labeled "license_info.xml" inside of this folder. Proceed to "Section 2 - Further Location Confirmation" regardless of whether you do or do not.

Linux

  1. Go to the folder where you have MATLAB installed. If you don't know where this is, it is usually "/usr/local/MATLAB/R20XXx". The "X"s will need to be replaced with your release of MATLAB. For example, if you are using R2022b, you'd replace R20XXx with R2022b.
  2. Go into the licenses folder. If you don't see a licenses folder, you may create one with the name "licenses" without quotation marks.
  3. You should see a file labeled "license_info.xml" inside of this folder. Proceed to "Section 2 - Further Location Confirmation" regardless of whether you do or do not.
Section 2 - Further Location Confirmation

Windows

  1. Press Windows Key+R on your keyboard
  2. Type in C:\Users\%username%\AppData\Roaming\MathWorks\MATLAB and then press enter on your keyboard.
  3. Go to the folder "R20XXx_licenses". The "X"s will need to be replaced with your release of MATLAB. For example, if you are using R2022b, you'd replace R20XXx with R2022b.
    • If you don't see any license folders here and you did have a license_info.xml file in your licenses folder from Section 1, then proceed to Section 3.
    • If you don't see any license folders here and you did not have a license_info.xml file in your licenses folder from Section 1, then proceed to Section 4.
  4. Try to find a license_info.xml in your R20XXx_licenses folder.
    • If you see this file, move it into the licenses folder from Section 1. You may then proceed to Section 3.
    • If you don't see this file and you have a license_info.xml in the licenses folder from Section 1, then go to Section 3.
    • If you don't see this file and you did not have a license_info.xml in the licenses folder from Section 1, then go to Section 4.

MacOS

  1. Open Finder
  2. In the top left corner of your screen, you should see buttons such as "File, Edit, View". Select "Go".
  3. Select the second-to-last option "Go to Folder..."
  4. Type in the following: ~/Library/Application Support/MathWorks/MATLAB.
  5. Press enter/return on your keyboard.
  6. Go to the folder "R20XXx_licenses". The "X"s will need to be replaced with your release of MATLAB. For example, if you are using R2022b, you'd replace R20XXx with R2022b.
    • If you don't see any license folders here and you did have a license_info.xml file in your licenses folder from Section 1, then proceed to Section 3.
    • If you don't see any license folders here and you did not have a license_info.xml file in your licenses folder from Section 1, then proceed to Section 4.
  7. Try to find a license_info.xml in your R20XXx_licenses folder.
    • If you see this file, move it into the licenses folder from Section 1. You may then proceed to Section 3.
    • If you don't see this file and you have a license_info.xml in the licenses folder from Section 1, then go to Section 3.
    • If you don't see this file and you did not have a license_info.xml in the licenses folder from Section 1, then go to Section 4.

Linux

  1. Go to the folder /home/$USER/.matlab
  2. Go to the folder "R20XXx_licenses". The "X"s will need to be replaced with your release of MATLAB. For example, if you are using R2022b, you'd replace R20XXx with R2022b.
    • If you don't see any license folders here and you did have a license_info.xml file in your licenses folder from Section 1, then proceed to Section 3.
    • If you don't see any license folders here and you did not have a license_info.xml file in your licenses folder from Section 1, then proceed to Section 4.
  3. Try to find a license_info.xml in your R20XXx_licenses folder.
    • If you see this file, move it into the licenses folder from Section 1. You may then proceed to Section 3.
    • If you don't see this file and you have a license_info.xml in the licenses folder from Section 1, then go to Section 3.
    • If you don't see this file and you did not have a license_info.xml in the licenses folder from Section 1, then go to Section 4.
Section 3 - Contents Confirmation

All Operating Systems

  1. Open your license_info.xml with a text editor such as Notepad, TextEdit, nano, etc.
  2. Check to make sure that the contents of your license_info.xml file read as they do below. If not, change it so it does. Please note that you may need administrative or sudo privileges to do this.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<root>
<ActivationEntry hostname="*" matlabroot="*" user="*">
<licmode>onlinelicensing</licmode>
</ActivationEntry>
</root>

 

Optional: Section 4 - Creating license_info.xml

All Operating Systems

If you have lost your license_info.xml or couldn't find it in any folders mentioned above, you can create a new file named "license_info.xml" and save it with the content from Section 3. You should save it in the licenses folder from Section 1.
Section 5 - Confirming Everything
Once you have your license_info.xml...
  1. Placed in the licenses folder from Section 1
  2. Removed the licenses folder from Section 2
  3. And formatted correctly per Section 3
...then you have correctly setup your license_info.xml file. Please note that this may not entirely resolve the issue(s) you may be having, it simply ensures that you have this file in correct place and formatted correctly.

Weitere Antworten (0)

Kategorien

Mehr zu Manage Products finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by