User menu

Menu

Main menu

Enabling Matlab with an Environment Variable (Windows)

Recent versions of the MATLAB mathematical analysis software package have been experiencing issues finding the correct license file. By setting an "environment variable", it is possible to override the settings file that comes with the installer, and direct the Matlab License Manager to the correct location. If you are running MATLAB under Windows and experiencing the problem described below, this set of instructions will show you how to set the correct environment variable to solve this problem.

Step Number: 
1
Action: 

You need to follow these instructions if you see this error message when you try to launch Matlab after installing it.

Screenshot: 
Step Number: 
2
Action: 

Open the "System" control panel.

(You can do this by right-clicking on the Computer icon and selecting Properties.)

(Another way to do this is by selecting Control Panel from the Start menu, and selecting System from the list of control panels--the "View by:" in the upper right should say Small icons.)

Screenshot: 
Step Number: 
3
Action: 

Select the Advanced system settings link.

Screenshot: 
Step Number: 
4
Action: 

In the System Properties dialog, make sure the Advanced tab is selected and click on the button labelled Environment Variables...

Screenshot: 
Step Number: 
5
Action: 

In the Environment Variables dialog, click on the button labelled New... under the "System variables" heading (second box). Do not click on the buttons below the "User variables" box.

Screenshot: 
Step Number: 
6
Action: 

Enter MLM_LICENSE_FILE (all caps) for the "Variable name", and 27000@lm-matlab.cc.lehigh.edu for the "Variable value", as shown.

Screenshot: 
Step Number: 
7
Action: 

Click OK (three times, to get back to the control panel window). Close the control panel. Now relaunch MATLAB. You should see the splash screen, as shown here, followed by the MATLAB main window. The program should now be working.

Screenshot: 
Audience: 
Platform: 

For additional help, please contact the LTS Help Desk at 610-758-4357 or helpdesk@lehigh.edu