Unable to launch the MATLABWindow application. The exit code was: 262

I can not install MATLAB 2024b on Ubuntu 22.04.5 LTS.
In the installation folder ~/Téléchargements/matlab_R2024b_Linux I run the command:
sudo ./install
and get the following error:
terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to launch web window with error: Unable to launch the MATLABWindow application. The exit code was: 262
Abandon (core dumped)
Any idea how to solve this?
I found solutions for exit codes 1 and 127 but they do not apply to my problem.

4 Comments

I have the same issue on Ubuntu 24.04.1 LTS...
I had the same problem but I have found out what was the problem:
Matlab doesn't like accents! Just try to take out the accents on "é" on Téléchargements and it will probably work...
As simple (and dumb) as that...
Thanks ! It also worked for me.
Thank you very much, I had this problem on linux Ubuntu 22.04. In fact it was only the é of Téléchargements that was causing the problem.

Sign in to comment.

 Accepted Answer

Fo people having the same issue: I solved the poblem by changing the installation folder to ~/Documents/matlab_R2024b_Linux. It was most probably the special character é in the path that created the bug.

12 Comments

I can confirm that this problem is triggered by accented characters in the full folder name. For me the problematic folder is named ~/Stažené (Downloads in czech language).
omg same! I moved to documents and it works! Debilní Stažené
Thank you bro, i have the same idea with you but i didnt notice that my outer folder name is in Chinese
Thank you. I experienced exactly the same issue. In my case, the folder name was in Japanese.
when i do this
xxsyskt6_03@xxsyskt6-HP-Z2-Tower-G9-Workstation-Desktop-PC:~/下载$ mv matlab_R2024b_Linux ../
it's works!
Same question solved for the folder name with Chinese.
Thanks it worked !
thanks, it works for me!!
Thanks,it works for me,I change the folder to ~/tmp/matlab_R2024b_Linux

Sign in to comment.

More Answers (0)

Products

Release

R2024b

Asked:

on 13 Oct 2024

Commented:

on 6 Aug 2025

Community Treasure Hunt

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

Start Hunting!