假设你安装到D盘,那么找到d:\matlab7\toolbox\ccslink\ccslink\info.xml 这个文件,用写字板打开这个文件 ,找到有一行这样的<name>Link for Code Composer Studio?/name>,把这句的/name>改成</name>,再保存一下这文件。 这样修改后,应当不会有问题了,我的就是这样解决的。
Technical Solutions
Why do I receive Java lang errors after starting MATLAB R14?
Date Last Modified: 25 Feb 2008
Solution ID:1-OVWJ9
Product:MATLAB
Reported in Release:R14
Platform:All Platforms
Operating System:All OS
Subject:Why do I receive Java lang errors after starting MATLAB R14?
Problem Description:
The following error messages appear in the MATLAB Command Window after MATLAB is started:
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.mathworks.mlservices.MLHelpServices.getDocRoot(MLHelpServices.java:372)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getAbsolutePath(ProductInfoUtils.java:847)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.parseFile(ProductInfoUtils.java:420)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.parseAllFiles(ProductInfoUtils.java:460)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.pathChanged(ProductInfoUtils.java:342)
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.<init>(ProductInfoUtils.java:288) ...
This behavior was seen on Windows 2000 and XP.
Another similar error message on Linux is as follows:
sun.io.MalformedInputException
at sun.io.ByteToCharGB18030.convert(Unknown Source)
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(Unknown Source)
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityManager.java:3186)
at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipString(XMLEntityManager.java:2948)
at org.apache.xerces.impl.XMLDocumentScannerImpl$XMLDeclDispatcher.dispatch(XMLDocumentScannerImpl.java:563) ...
Solution:
This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This error is ocurring because of a corrupt preference setting in the MATLAB preferences file. To fix this problem, start MATLAB and run the following statement in the Command Window, after the exceptions display:
com.mathworks.services.Prefs.setStringPref('HelpSelectedProducts','MATLAB');
After running the statement, quit MATLAB and then restart it. The problem should be fixed.
http://www.mathworks.com/support/solutions/data/1-OVWJ9.html?solution=1-
http://www.chinavib.com/forum/viewthread.php?tid=40470&extra=page%3D1
http://tieba.baidu.com/f?ct=335675392&tn=baiduPostBrowser&sc=3642103521&z=355500850&pn=0&rn=50&lm=0&word=matlab