查看: 737|回復: 1|關注: 0
打印 上一主題 下一主題

[未答復] MATLAB運行出錯Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException:

[復制鏈接]

新手

5 麥片

財富積分


050


1

主題

2

帖子

0

最佳答案
跳轉到指定樓層
1#
發表于 2020-1-30 09:30:13 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
剛打開的時候不報錯,等我點擊新建腳本就會報錯,更改當前路徑也會報錯,錯誤如下,麻煩大佬們幫忙看看咋回事Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException:java.lang.NoClassDefFoundError: com/mathworks/widgets/text/mcode/MTree$NodeType        at com.mathworks.mde.editor.EditorUtils.invokeAndWait(EditorUtils.java:425)
        at com.mathworks.mde.editor.MatlabEditorApplication.newEditor(MatlabEditorApplication.java:127)
        at com.mathworks.mde.desk.MLDesktop$NewMFileAction.actionPerformed(MLDesktop.java:2642)
        at com.mathworks.mwswing.ChildAction.actionPerformed(ChildAction.java:214)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
        at com.mathworks.toolstrip.plaf.RegularButtonUI$RegularToolstripButtonListener.mouseReleasedImpl(RegularButtonUI.java:335)
        at com.mathworks.toolstrip.plaf.RegularButtonUI$RegularToolstripButtonListener.mouseReleased(RegularButtonUI.java:325)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
        at java.awt.Component.processMouseEvent(Component.java:6533)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
        at com.mathworks.mwswing.MJButton.processMouseEvent(MJButton.java:348)
        at java.awt.Component.processEvent(Component.java:6298)
        at java.awt.Container.processEvent(Container.java:2236)
        at java.awt.Component.dispatchEventImpl(Component.java:4889)
        at java.awt.Container.dispatchEventImpl(Container.java:2294)
        at java.awt.Component.dispatchEvent(Component.java:4711)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
        at java.awt.Container.dispatchEventImpl(Container.java:2280)
        at java.awt.Window.dispatchEventImpl(Window.java:2746)
        at java.awt.Component.dispatchEvent(Component.java:4711)
        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:80)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
        at java.awt.EventQueue$4.run(EventQueue.java:731)
        at java.awt.EventQueue$4.run(EventQueue.java:729)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        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)
Caused by: java.lang.NoClassDefFoundError: com/mathworks/widgets/text/mcode/MTree$NodeType
        at com.mathworks.widgets.text.mcode.MFoldType.<clinit>(MFoldType.java:31)
        at com.mathworks.widgets.STPPrefsManager.<init>(STPPrefsManager.java:124)
        at com.mathworks.widgets.STPPrefsManager.getInstance(STPPrefsManager.java:146)
        at com.mathworks.widgets.STPPrefsManager.<clinit>(STPPrefsManager.java:66)
        at com.mathworks.widgets.text.MWKit.<clinit>(MWKit.java:121)
        at com.mathworks.widgets.text.plain.PlainLanguage.createDefaultKit(PlainLanguage.java:64)
        at com.mathworks.widgets.SyntaxTextPane.createDefaultEditorKit(SyntaxTextPane.java:322)
        at javax.swing.JEditorPane.getEditorKit(JEditorPane.java:913)
        at javax.swing.plaf.basic.BasicEditorPaneUI.getEditorKit(BasicEditorPaneUI.java:113)
        at javax.swing.plaf.basic.BasicTextUI.installUI(BasicTextUI.java:797)
        at javax.swing.plaf.basic.BasicEditorPaneUI.installUI(BasicEditorPaneUI.java:89)
        at javax.swing.JComponent.setUI(JComponent.java:666)
        at javax.swing.text.JTextComponent.setUI(JTextComponent.java:328)
        at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:338)
        at javax.swing.text.JTextComponent.<init>(JTextComponent.java:312)
        at javax.swing.JEditorPane.<init>(JEditorPane.java:196)
        at com.mathworks.widgets.SyntaxTextPaneBase.<init>(SyntaxTextPaneBase.java:202)
        at com.mathworks.widgets.SyntaxTextPane.<init>(SyntaxTextPane.java:221)
        at com.mathworks.mde.editor.EditorSyntaxTextPane.<init>(EditorSyntaxTextPane.java:31)
        at com.mathworks.mde.editor.EditorSTPMultiView.createPrimarySTP(EditorSTPMultiView.java:23)
        at com.mathworks.widgets.SyntaxTextPaneMultiView.<init>(SyntaxTextPaneMultiView.java:167)
        at com.mathworks.mde.editor.EditorSTPMultiView.<init>(EditorSTPMultiView.java:17)
        at com.mathworks.mde.editor.EditorView.initSyntaxTextPane(EditorView.java:806)
        at com.mathworks.mde.editor.EditorView.<init>(EditorView.java:222)
        at com.mathworks.mde.editor.EditorView.<init>(EditorView.java:153)
        at com.mathworks.mde.editor.EditorViewClient.init(EditorViewClient.java:228)
        at com.mathworks.mde.editor.EditorViewClient.<init>(EditorViewClient.java:177)
        at com.mathworks.mde.editor.MatlabEditorApplication.createEditorViewClient(MatlabEditorApplication.java:868)
        at com.mathworks.mde.editor.MatlabEditorApplication.createEditorViewClient(MatlabEditorApplication.java:853)
        at com.mathworks.mde.editor.MatlabEditorApplication.createBufferEditorViewClient(MatlabEditorApplication.java:775)
        at com.mathworks.mde.editor.MatlabEditorApplication.doNewEditor(MatlabEditorApplication.java:545)
        at com.mathworks.mde.editor.MatlabEditorApplication.access$100(MatlabEditorApplication.java:81)
        at com.mathworks.mde.editor.MatlabEditorApplication$2.runWithOutput(MatlabEditorApplication.java:131)
        at com.mathworks.jmi.AWTUtilities$Invoker$2.watchedRun(AWTUtilities.java:475)
        at com.mathworks.jmi.AWTUtilities$WatchedRunnable.run(AWTUtilities.java:436)
        at com.mathworks.jmi.AWTUtilities$Invoker.invoke(AWTUtilities.java:490)
        at com.mathworks.jmi.AWTUtilities.invokeAndWait(AWTUtilities.java:351)
        at com.mathworks.mde.editor.EditorUtils.invokeAndWait(EditorUtils.java:421)
        ... 42 more
Caused by: java.lang.ClassNotFoundException: com.mathworks.widgets.text.mcode.MTree$NodeType
        at java.net.URLClassLoader$1.run(URLClassLoader.java:370)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 80 more
Caused by: java.util.zip.ZipException: ZIP_Read: error reading zip file
        at java.util.zip.ZipFile.read(Native Method)
        at java.util.zip.ZipFile.access$1400(ZipFile.java:60)
        at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)
        at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)
        at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
        at sun.misc.Resource.getBytes(Resource.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
        ... 86 more
Exception in thread "Startup Class Loader" java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.widgets.text.MWKit
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at com.mathworks.mde.desk.StartupClassLoader.loadClass(StartupClassLoader.java:262)
        at com.mathworks.mde.desk.StartupClassLoader.access$900(StartupClassLoader.java:25)
        at com.mathworks.mde.desk.StartupClassLoader$2.run(StartupClassLoader.java:248)
        at java.lang.Thread.run(Thread.java:745)
>>


回復主題 已獲打賞: 0 積分

舉報

您需要登錄后才可以回帖 登錄 | 注冊

本版積分規則

關閉

站長推薦上一條 /4 下一條

快速回復 返回頂部 返回列表
哪一款德州扑克还能玩 捕鱼来了贴吧 股票怎样融资融券 南宁麻将杠上炮的算法 九游棋牌游戏下载安装 四肖中特是什么意思 股票怎么玩不懂股票 三分彩技巧 切尔西欧冠 辽宁营口心悦麻将下载安装 香港多多宝精选资料 捕鱼来了论坛 重庆麻将下载手机版 兼职网上赚钱 中国股票下跌 开手机网店赚钱吗 竞彩足球推荐网