Matlab 报错 Java error when opening the editor

参考资料:Java error when opening the editor

版本:Matlab 2023b
环境:openSUSE TW

>> cat ~/MATLABDesktopCreateError.log
java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.mde.cmdwin.CmdWin
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        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:518)
        at com.mathworks.util.ClassLoaderBridge.findClass(ClassLoaderBridge.java:23)
        at com.mathworks.widgets.desk.DTClient.createComponent(DTClient.java:275)
        at com.mathworks.widgets.desk.Desktop.createClientComponent(Desktop.java:6482)
        at com.mathworks.mde.desk.MLDesktop.createClientComponent(MLDesktop.java:1054)
        at com.mathworks.widgets.desk.Desktop.createClientComponentWrapper(Desktop.java:6496)
        at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:7195)
        at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:7182)
        at com.mathworks.widgets.desk.DTNestingContainer$ViewState.restore(DTNestingContainer.java:2910)
        at com.mathworks.widgets.desk.DTNestingContainer$SplitState.restore(DTNestingContainer.java:2536)
        at com.mathworks.widgets.desk.DTNestingContainer$SplitState.restore(DTNestingContainer.java:2537)
        at com.mathworks.widgets.desk.DTNestingContainer$RootState.restore(DTNestingContainer.java:2422)
        at com.mathworks.widgets.desk.DTNestingContainer$RootState.restore(DTNestingContainer.java:2417)
        at com.mathworks.widgets.desk.DTNestingContainer.restoreState(DTNestingContainer.java:2291)
        at com.mathworks.widgets.desk.DTMultipleClientFrame.restoreState(DTMultipleClientFrame.java:2791)
        at com.mathworks.widgets.desk.Desktop.restoreLayout(Desktop.java:5961)
        at com.mathworks.mde.desk.MLDesktop.restoreLayout(MLDesktop.java:1674)
        at com.mathworks.widgets.desk.Desktop.restoreLayout(Desktop.java:5724)
        at com.mathworks.mde.desk.MLDesktop.setDefaultDesktop(MLDesktop.java:1561)
        at com.mathworks.widgets.desk.Desktop.initMainFrame(Desktop.java:296)
        at com.mathworks.mde.desk.MLDesktop.initMainFrameFromThread(MLDesktop.java:858)
        at com.mathworks.mde.desk.MLDesktop.access$600(MLDesktop.java:225)
        at com.mathworks.mde.desk.MLDesktop$Initializer.run(MLDesktop.java:1237)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

解决办法

cd ~/.matlab
mv R2023b/ R2023b_removed
posted @ 2024-04-07 16:07  Leeds_Garden  阅读(103)  评论(0编辑  收藏  举报