Cannot install MatLab on my Windows 10 Laptop

I'm at my wit's end trying to install MatLab. I have homework that's due, and it won't install for me.
I have a "Lenovo ideapad" laptop with a Windows 10 operating system.
I have already loaded my key onto MathWorks and downloaded the installer. I clicked on "Log In with a MathWorks account" and accepted the terms. I typed in my correct MathWorks account name and password. I only have one license, so it was already highlighted; I've also tried clicking on it to make sure it was selected. It asks me to choose an installation folder, and I accept the default folder name they suggest. After I click on "Next" from this point, it brings up a window that says the following:
"Connection Error
" The application could not connect to MathWorks.
"For more information on resolving this issue, see this Support Article"
After clicking on "OK", it takes me back to the screen I was just at, for choosing an installation folder.
I checked the support article the link led me to, but nothing has helped so far. I have no clue why it won't connect. Keep in mind that this is the MathWorks Installer program; I haven't been able to install MatLab yet.
Please help??? Nobody at my school knew what to do about this either. {:-(

7 Comments

A mi me pasa lo mismo y tengo tambien un Lenovo y Windows 10. He probado desactivado el Windows Defender, he deshabilitado proxy, he copiado el enlace de instalación en el escritorio, y he incluido las dos variables de entorno que dices. Y sigo sin poder instalar Matlab. El problema sigue siendo el mismo. Me puedes ayudar, por favor?
Solo debes de darle en ok e intentar nuevamente, con eso que hice me dejo instalarla
This does not work. I did it and had the same problem
If the instructions on this page don't help you resolve the problem and successfully install the software, contact Technical Support using the Contact Support link on the Support section of this website.
Oh my god I am having the same exact issue with the same exact laptop!!
I have the same same issue ,I have tried several time
please help me i have no licence but matlab want licence

Sign in to comment.

 Accepted Answer

I appreciate everyone's help.
I was able to call the contact number and they got me in touch with the Install Team.
It turns out that the problem was very simple: My computer just needed two environment variables set. After those were set and I restarted the installation program, everything worked as it should.
In case someone reading this has the exact same problem, here are the fixing instructions (keep in mind I'm on a Lenovo laptop with a Windows 10 operating system):
First, he had me do a "start menu"/Cortana search for "Environment Variables".
"Once in the Environment variable menu please use the steps below to set both system environment variables:
  1. Under System Variables, select New.
  2. Set the first variable name "JAVA_TOOL_OPTIONS" with the value of "-Djava.net.preferIPv4Stack=true" (enter these without the quotation marks)
  3. select New again.
  4. Set the second variable name "JAVA_OPTIONS" with the value of "-Djava.net.preferIPv4Stack=true" (enter these without the quotation marks) and click on OK
  5. Click OK again on the previous screen and try the installer again.
"NOTE: Once the installation is complete you can remove these environment variables."

14 Comments

You're my HERO
Thanks!!!
Thank GOD I found this! Saved me so much!!!
you save me !!!!!!!!!!!!!!!!!!!Thanks u are my hero
It worked!!!!! Thanks a lot!!!!
THANK YOU I WAS SO FRUSTRATED I'VE BEEN TRYING T INSTALL IT FOR 2 WEEKS OMG
I was getting a network proxy error. I was not using the proxy and couldn't figure my way out until I landed on your post. Thanks Man!!!
Thanks a lot, "Environment Variables" works great in my case, running on Toshiba with windows 10
i am not able to add variables under system variables
Took me three tries, but I finally got it! Thank you thank you thank you thank you.
cannot extract matlab2021a
Jan
Jan on 20 Apr 2021
Moved: Dyuman Joshi on 7 Jul 2025
This message does not contain enough information to suggest a solution. Do you try to unzip the downloaded files? This does not work. Only the installer can unzip them appropriately.
thank you i love you so much

Tank you I love you so much

Sign in to comment.

More Answers (4)

Jan
Jan on 22 Feb 2019
Edited: Jan on 22 Feb 2019
Did you read it? Does the given solution help? If not, please mention, what you have tried. Firewall, Proxy, Anti-Virus software, destination not a local disk?

4 Comments

If the instructions on that page don't help you resolve the problem and successfully install the software, contact Technical Support using the Contact Us link in the upper-right corner of this page for installation help.
Microsoft windows 10 home single language is already installed on my computer. I downloaded the matlab and then extracted file but when I try to install it by clicking setup icon but it doesn't work. Mouse icon shows try to working on but nothing happens. Please help
If the instructions on this page don't help you resolve the problem and successfully install the software, contact Technical Support using the Contact Support link on the Support section of this website.
Solved. My username folder had non-ASCII character, it prevent running the installation. You can solve this problem like this.

Sign in to comment.

I didn't think the advice applied to me since my McAfee is no longer active. It didn't occur to me until recently that there's got to be a place to disable Windows Defender.
Following the advice in the support article, I just found my Windows Defender Security Center and disabled "Real-time Protection", "Cloud-delivered Protection", and "Automatic Sample Submission" (all that was listed that I could disable). However, it didn't make a difference. It still gives me the same error. {:-(
Thanks for showing me the contact page. I'm calling now (if they're open) and will post/edit this post with the results. I'm trusting they'll be able to help me.

1 Comment

The page mentions more problems, not only the virus protection: Firewall, Proxy, destination not a local disk? Several user mentiones, that the installation runs, when the files are stored on the local C disk.

Sign in to comment.

Connection Error
" The application could not connect to MathWorks."
As many other Matlab users I am on a corporate network with lots of cooky stuff which I have no control of whatsoever. I've wasted a day tweaking Proxy, Firewall and Java (Antivirus is absolutely out of my control). Still could not install Matlab.
However I could instal Matlab AFTER uninstalling a program named ZScaler and all of it instances from the "Apps & Features" dialog (Add or remove programs system setting). This miserable ZScaler is a part of some sort of corporate cloud solution and messes things up pretty badly.
Ripp this ZScaler off your computer and you will be able to install Matlab. All my cloud drives still work, at least in te office area. I am on W10.
Good luck!

1 Comment

Uninstalling ZScaler is not needed. It is sufficient to TURN OFF the "Internet Security" of ZScaler.
I hope it will help those like me who have had problems with ZScaler.

Sign in to comment.

Siddharth Magadum
Siddharth Magadum on 21 Jan 2021
Edited: Siddharth Magadum on 21 Jan 2021
This did work for me for the first time. But I didn't complete the installation process (as I was not sure which all products I needed to install). Now when I run the installer, I face the same connection error mentioned above.
Does anyone know how to fix this?
Thanks in advance.

Categories

Asked:

on 22 Feb 2019

Commented:

on 2 Sep 2025

Community Treasure Hunt

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

Start Hunting!