I recently downloaded the Mathlab R2018a version but when I try to run it I receive a "fatal error on startup". How can I solve it?

Antworten (2)

Jan
Jan am 8 Mai 2018

0 Stimmen

Download it again. If this does not help, post any details: Operating System, error log, ... Send these details to MathWorks using the "Contact Us" link on this page.

4 Kommentare

Guichen Zhang
Guichen Zhang am 5 Okt. 2019
i have a similar problem. Everytime i tried to run it, I receive a "fatal error on startup". And, followed by these words:
Java exception occurred: java. lang. ExceptionlnlnitializerError at com. mathworks. mde. desk. MLDesktop.<init>(MLDesktop. java:567)
at com. mathworks. mde. desk. MLDesktop. getinstance(MLDesktop. java:655)
Caused by: java. lang. NullPointerException at sun. awt. FontConfiguration. getVersion(FontConfiguration. java:1264)
at sun. awt. FontConfiguration. readFontConfigFile(FontConfiguration. java:219)
at sun. awt. FontConfiguration. init(FontConfiguration, java:107)
at sun. awt. Win32FontManager. createFontConfiguration(Win32FontManager. java:182)
at sun. font. SunFontManager$2. run(SunFontManager. java:431)
at java. security. AccessController. doPrivileged(Native Method)
at sun. font. SunFontManager.<init>(SunFontManager. java:376)
at sun. awt. Win32FontManager.<init>(Win32FontManager. java:89)
at sun. reflect. NativeConstructorAccessorlmpl. newlnstance0(Native Method)
at sun. reflect. NativeConstructorAccessorlmpl. newlnstance(NativeConstructorAccessorlmpl. java:62)
at sun. reflect. DelegatingConstructorAccessorlmpl. newlnstance(DelegatingConstructorAccessorlmpl. java:45)
at java. lang. reflect. Constructor. newlnstance(Constructor. java:423)
at java. lang. Class. newlnstance(Class. java:442)
at sun. font. FontManagerFactory$1. run(FontManagerFactory. java:83)
at java. security. AccessController. doPrivileged(Native Method)
at sun. font. FontManagerFactory. getlnstance(FontManagerFactory. java:74)
at java. awt. Font. getFont2D(Font, java:491)
at java. awt. Font. access$000(Font, java:224)
at java. awt. FontSFontAccesslmpl. getFont2D(Font. java:228)
at sun. font. FontUtilities. getFont2D(FontUtilities. java:180)
at sun. font. FontUtilities. fontSupportsDefaultEncoding(FontUtilities. java:338)
at com. sun, java. swing, plaf: windows. WindowsLookAndFeelSWindowsFontProperty. configureValue(WindowsLookAndFeel. java:2293)
at com. sun. java. swing. plaf. windows. DesktopProperty. createValue(DesktopProperty. java:154)
at javax. swing. UIDefaults. getFromHashtable(UIDefaults, java:231)
at javax. swing. UIDefaults. get(UIDefaults, java:161)
at javax. swing. MultiUIDefaults. get(MultiUIDefaults. java:64)
at javax. swing. UIDefaults. getFont(UIDefaults, java:388)
at javax. swing. UIManager. getFont(UlManager. java:672)
at javax. swing. LookAndFeel. installColorsAndFont(LookAndFeel, java:208)
at javax. swing. plaf. basic. BasicPanelUl. installDefaults(BasicPanelUl., java:66)
at javax. swing. plaf. basic. BasicPanelUL. installUI(BasicPanelUl, java:56)
at javax. swing. JComponent. setUI(JComponent. java:666)
at javax. swing. JPanel. setUI(JPanel. java:153)
at javax. swing. JPanel. updateUI(JPanel. java:126)
at javax. swing. JPanel.<init>(JPanel. java:86)
at javax. swing. JPanel.<init>(JPanel. java:109)
at javax. swing. JPanel.<init>(JPaneljava:117)
at com. mathworks. mde. explorer. Explorer.<clinit>(Explorer. java:156)
.2 more
ZHIQIANG LIU
ZHIQIANG LIU am 17 Okt. 2020
Hi Jan, I really appreciate the answers on matlab forum. Here I suffered a similar problem with the link docked figures, but I don't know how to add comments there. Could you please provide some suggestions: If there are many figures in the main window, how to change the width of each figure automatically so that the figures can fit different size controls?
Thanks a lot!
Jan
Jan am 18 Okt. 2020
I do not understand, what you are asking for. Please post more details of your problem.
You can post comments in the other thread exactly like you do it here.
ZHIQIANG LIU
ZHIQIANG LIU am 18 Okt. 2020
I'm sorrry for the unclear description. I have a program writed like this:
desktop = com.mathworks.mde.desk.MLDesktop.getInstance;
myGroup = desktop.addGroup('myGroup');
desktop.setGroupDocked('myGroup', 0);
myDim = java.awt.Dimension(4, 2); % 4 columns, 2 rows
% 1: Maximized, 2: Tiled, 3: Floating
desktop.setDocumentArrangement('myGroup', 2, myDim)
......
And my question is: How to set the width of each panel in the capture automatically?(Each panel takes a half as default)

Melden Sie sich an, um zu kommentieren.

Bhargavi Maganuru
Bhargavi Maganuru am 27 Mär. 2020

0 Stimmen

This error can occur when MATLAB get's corrupted during the installation process.
To resolve this issue, disable any security software or allow exceptions for the MATLAB application and then perform an clean installation of MATLAB.
If the issue still persists after performing a clean installation, obtain the crash logs and contact MathWorks support.

Kategorien

Gefragt:

am 8 Mai 2018

Kommentiert:

am 18 Okt. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by