Matlab crashes on startup (java.lang.NullPointerException) on Fedora Linux
42 views (last 30 days)
Show older comments
As soon as I launch matlab with ./matlab the window opens and I get this message. What can I do?
When I close the error window matlab stays open but I can't click on anything and it crashes a few seconds later.

0 Comments
Answers (2)
Doug
on 2 Sep 2022
This issue cropped up on me today; I was able to resolve it by blowing away (well ... moving, to be safe) my ~/.matlab/R2022a folder and letting MATLAB create a new one on startup. I'm not sure which file(s) caused the problem, but I just copied my history over to the newly created directory and that was good enough for me ...
4 Comments
Jared Brzenski
on 12 Feb 2025
This worked for R2023a when these error messages appeared after updating Ubuntu.
Chenye Zhou
on 28 Feb 2025
Edited: Chenye Zhou
on 28 Feb 2025
Sadly, this doesn't work. It seems this is related to a jre upgrade on Ubuntu through apt. This method got matlab opened normally. However, as long as I open or create a new .m file, the same error occurs.
Tom Hearn
on 28 Jul 2022
I have the exact same question after updateing to fedora 36 today. So I reinstalled matlab. This was a chore as I had to remove the libfreetype libraries to get it to work and then make sure root had access to the proper libraries. I got it reinstalled but it didn't solve the problem! What is going on?
2 Comments
Image Analyst
on 28 Jul 2022
What did tech support say when you called them? You DID call them, right?
Tom Hearn
on 28 Jul 2022
Well, I was hoping someone would respond here but I'll have to contact them.
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!