Clear Filters
Clear Filters

Why do I receive Java lang errors after starting MATLAB R14?

8 views (last 30 days)
The following error messages appear in the MATLAB Command Window after MATLAB is started:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.mathworks.mlservices.MLHelpServices.getDocRoot(
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.getAbsolutePath(
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.parseFile(
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.parseAllFiles(
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.pathChanged(
at com.mathworks.mlwidgets.util.productinfo.ProductInfoUtils.<init>( ...
This behavior was seen on Windows 2000 and XP.
Another similar error message on Linux is as follows:
at Source)
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(Unknown Source)
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(Unknown Source)
at Source)
at Source)
at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(
at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipString(
at org.apache.xerces.impl.XMLDocumentScannerImpl$XMLDeclDispatcher.dispatch( ...

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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:'HelpSelectedProducts','MATLAB');
After running the statement, quit MATLAB and then restart it. The problem should be fixed.

More Answers (0)


Find more on Startup and Shutdown in Help Center and File Exchange


No tags entered yet.


Community Treasure Hunt

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

Start Hunting!