MATLAB Answers

Matlab 2015a Java error after fresh installation?

30 views (last 30 days)
ptrk on 27 Mar 2015
Commented: Filippo Desantis on 22 Dec 2019
Hi everyone,
after fresh Matlab installation on win8.1 64bit i get following fatal error on startup:
java exeption occured java.lang.noClassDefFoundError: Could not initialize class sun.awt.Win32FontManager
... ...
can anyone help me?

Accepted Answer

Anusha B
Anusha B on 30 Mar 2015
1. You can try executing the following commands:
rehash toolboxcache
2. A corrupt installation may also be a cause of the issue.
  1 Comment
Filippo Desantis
Filippo Desantis on 22 Dec 2019
Hi, I have the same problem but your solution unfortunately didn't resolve, instead a new warning appeared, "Warning: Function sim has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict." could you help me ?

Sign in to comment.

More Answers (3)

ALI on 18 Jul 2018
Hi Anusha,
MATLAB is giving that java error message at statup..
I just see matlab logo and error message.
How can I execute 1. restoredefaultpath 2. rehash toolboxcache?

Sign in to comment.

Ralph Gunderson
Ralph Gunderson on 17 Nov 2019
Using the Command Prompt, you can navigate to your matlab installaton folder and launch Matlab without the desktop using
matlab -nodesktop
Then you can execute the commands from the Matlab command line interface. I am having the same problem as you, and folllowed this suggestion. However, Matlab will still not open.

Community Treasure Hunt

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

Start Hunting!