运行 GUI 时出错请教
一下是错误信息,我搜了一下板块没有运行gui时出错,请求帮助!
File D:\MATLAB\R2007a\toolbox\matlab\guide\templateinfo.xml could not be parsed successfully.
java.net.MalformedURLException: unknown protocol: d
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:740)
at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:685)
at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:252)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:503)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:221)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.mathworks.toolbox.matlab.guide.template.TemplateParser.xmlParse(TemplateParser.java:108)
at com.mathworks.toolbox.matlab.guide.template.TemplateParser.parseTemplateInfo(TemplateParser.java:56)
at com.mathworks.toolbox.matlab.guide.template.QuickStartPanel.parseTemplate(QuickStartPanel.java:380)
at com.mathworks.toolbox.matlab.guide.template.QuickStartPanel.populateDialog(QuickStartPanel.java:217)
at com.mathworks.toolbox.matlab.guide.template.QuickStartPanel.doInit(QuickStartPanel.java:137)
at com.mathworks.toolbox.matlab.guide.template.QuickStartPanel.<init>(QuickStartPanel.java:107)
at com.mathworks.toolbox.matlab.guide.template.QuickStartPanel.<init>(QuickStartPanel.java:37)
at com.mathworks.toolbox.matlab.guide.template.QuickStartPanel$1.runWithOutput(QuickStartPanel.java:115)
at com.mathworks.jmi.AWTUtilities$Invoker$1.run(AWTUtilities.java:103)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
??? Java exception occurred:
java.lang.NullPointerException
at com.mathworks.toolbox.matlab.guide.template.QuickStartPanel.onShow(QuickStartPanel.java:169)
Error in ==> guidetemplate at 49
quickstartpanel.onShow(numout == 0);
Error in ==> D:\MATLAB\R2007a\toolbox\matlab\guide\guide.p>guide at 68
guidetemplate;
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mathworks.toolbox.matlab.guide.template.QuickStartPanel$2.run(QuickStartPanel.java:164)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
[ 本帖最后由 eight 于 2008-4-8 09:38 编辑 ] 这个应该是Xerces库文件的问题
你可以到http://archive.apache.org/dist/xml/xerces-j/下载最新版本的Xerces库文件
Xerces-J-bin.2.9.0.zip或者Xerces-J-bin.2.9.0.tar.gz解压
然后用其中的xercesImpl.jar 和 xml-apis.jar替换matlab目录下 java\jarext 中的老文件
注意,替换前先备份
good luck!
页:
[1]