Info

此问题已关闭。 请重新打开它进行编辑或回答。

When trying to run Matlab (tried both R2016b and R2013b) error occurs.

1 次查看(过去 30 天)
When trying to run Matlab (tried both R2016b and R2013b) error occurs:
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.mathworks.jmi.ClassLoaderManager.loadClass(ClassLoaderManager.java:442)
at com.mathworks.jmi.ClassLoaderManager.findClass(ClassLoaderManager.java:422)
at com.mathworks.jmi.Matlab$2.findClass(Matlab.java:519)
at com.mathworks.util.ClassLoaderBridge.findClass(ClassLoaderBridge.java:23)
at com.mathworks.widgets.desk.DTClient.createComponent(DTClient.java:269)
at com.mathworks.widgets.desk.Desktop.createClientComponent(Desktop.java:6059)
at com.mathworks.mde.desk.MLDesktop.createClientComponent(MLDesktop.java:992)
at com.mathworks.widgets.desk.Desktop.createClientComponentWrapper(Desktop.java:6073)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6766)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6753)
at com.mathworks.widgets.desk.DTNestingContainer$ViewState.restore(DTNestingContainer.java:2907)
at com.mathworks.widgets.desk.DTNestingContainer$SplitState.restore(DTNestingContainer.java:2534)
at com.mathworks.widgets.desk.DTNestingContainer$RootState.restore(DTNestingContainer.java:2419)
at com.mathworks.widgets.desk.DTNestingContainer$RootState.restore(DTNestingContainer.java:2414)
at com.mathworks.widgets.desk.DTNestingContainer.restoreState(DTNestingContainer.java:2288)
at com.mathworks.widgets.desk.DTMultipleClientFrame.restoreState(DTMultipleClientFrame.java:2788)
at com.mathworks.widgets.desk.Desktop.restoreLayout(Desktop.java:5538)
at com.mathworks.mde.desk.MLDesktop.restoreLayout(MLDesktop.java:1558)
at com.mathworks.widgets.desk.Desktop.restoreLayout(Desktop.java:5297)
at com.mathworks.mde.desk.MLDesktop.setDefaultDesktop(MLDesktop.java:1444)
at com.mathworks.widgets.desk.Desktop.initMainFrame(Desktop.java:296)
at com.mathworks.mde.desk.MLDesktop.initMainFrameFromThread(MLDesktop.java:845)
at com.mathworks.mde.desk.MLDesktop.access$2100(MLDesktop.java:197)
at com.mathworks.mde.desk.MLDesktop$Initializer.run(MLDesktop.java:1151)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.mathworks.mde.cmdwin.CmdWinPrefs.isUserNewToHandleGraphics2(CmdWinPrefs.java:408)
at com.mathworks.mde.cmdwin.CmdWinPrefs.shouldShowHandleGraphics2Message(CmdWinPrefs.java:390)
at com.mathworks.mde.cmdwin.CmdWin.<init>(CmdWin.java:160)
at com.mathworks.mde.cmdwin.CmdWin.<clinit>(CmdWin.java:107)
... 40 more
I am using Windows 7 x64. As I understand the problem in graphics settings/drivers or Desktop settings. Tried many suggestions (e.g. changing windows theme to Default, compatibility with XP, Vista, 2000 etc.) but it does not help. I have Nvidia video card if it matters. Hope for your help...

回答(1 个)

Image Analyst
Image Analyst 2017-6-28
  5 个评论
Image Analyst
Image Analyst 2017-6-28
Who knows? So have I but mine works fine. Like the FAQ says it could be so complex that no one except the Mathworks will be able to figure it out. They can actually set up a webex session and drive your computer if they need to, to help you get it running again. We can't do that.
Abulkhayr Narbekov
Abulkhayr Narbekov 2017-6-28
Ok, thank you. I will leave the result of my call here. Maybe, it will help someone with the same problem

Community Treasure Hunt

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

Start Hunting!

Translated by