Why won't MATLAB start when connected to external monitors on Mac OS and why do I see the following error in Terminal?
Fatal Internal Error: Java exception occurred:
java.lang.NullPointerException
at sun.lwawt.macosx.LWCToolkit.getScreenWidth(LWCToolkit.java:362)
at sun.awt.SunToolkit.getScreenSize(SunToolkit.java:642)
at com.mathworks.mde.desk.MLDesktop.isWideScreen(MLDesktop.java:966)
at com.mathworks.mde.desk.MLDesktop.getInitialLayoutFilename(MLDesktop.java:970)
at com.mathworks.mde.desk.MLDesktop.<init>(MLDesktop.java:579)
at com.mathworks.mde.desk.MLDesktop.getInstance(MLDesktop.java:647)
Best Answer