Fatal Error On Startup java exception occured: java.lang.​​NoClassDe​f​FoundErr​or​: Could not initialize class sun.awt.Win32FontManager

45 views (last 30 days)
Hi, this error occurs after trying to start MATLAB R2019a (new installation) on a Windows 10 Home 64 Bit platform (16 RAM, Intel Core i7, enough free disk space available). How can this be fixed? Thanks

Answers (1)

Aditya Salveru
Aditya Salveru on 17 Oct 2019
Edited: Aditya Salveru on 18 Oct 2019
Hi Michael,
This error might have occurred due to Improper installation of MATLAB.
In order to work around the issue, start MATLAB with 'nojvm' tag. Please follow the steps given below:
1. Open Command Prompt and navigate to the drive where you installed MATLAB.
2. Execute the following command to open MATLAB with 'nojvm' tag in Command Prompt:
matlab -nojvm
3. MATLAB Command Window will open up and then you can execute the following commands in it:
>>restoredefaultpath
>>rehash toolboxcache
>>savepath
4. Restart MATLAB normally.
If the above solution does not work, try reinstalling MATLAB.

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!