Problem Solved :Java errors when Matlab starts
11 views (last 30 days)
Show older comments
Hi all, I was/am getting some errors when matlab starts. I tried to resolve this by uninstalling Matlab, and installing it from scratch. I unistalled all Java platforms, and installed them again. I have also installed the SDK compiler suggested by Matlab. (This fixed simulink issues which was not working at all..now it does.)
However, it did not solve the Java errors... I would really appreciate your help, if you had any similar issue. I am attaching the errors below:
Best regards, M
SOLUTION (as suggested by matlab support) : Install Matlab and Simulink report generators
Toolbox Path Cache read in 0.02 seconds.
MATLAB Path initialized in 0.41 seconds.
ERROR: Error starting reference:file:/C:/Program Files/MATLAB/R2012a/java/jar/toolbox/rptgenslxmlcomp.jar (org.osgi.framework.BundleException: Activator start error in bundle com.mathworks.toolbox.rptgenslxmlcomp [10].)
java.lang.NoClassDefFoundError: com/mathworks/toolbox/rptgenxmlcomp/plugin/ComparisonRulesProvider
at com.mathworks.toolbox.rptgenslxmlcomp.plugin.ComparisonPluginSLXMLComp.addComparisonTypes(ComparisonPluginSLXMLComp.java:26)
at com.mathworks.toolbox.rptgenslxmlcomp.plugin.ComparisonPluginSLXMLComp.addKnownComponents(ComparisonPluginSLXMLComp.java:22)
at com.mathworks.toolbox.rptgenslxmlcomp.plugin.ComparisonPluginSLXMLComp.<init>(ComparisonPluginSLXMLComp.java:14)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.mathworks.util.osgi.ServicesActivator.registerServicePair(ServicesActivator.java:58)
at com.mathworks.util.osgi.ServicesActivator.parseServices(ServicesActivator.java:38)
at com.mathworks.util.osgi.ServicesActivator.start(ServicesActivator.java:33)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1458)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.mathworks.toolbox.rptgenxmlcomp.plugin.ComparisonRulesProvider
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 17 more
0 Comments
Answers (2)
Kapil Nagwanshi
on 1 Oct 2012
Try to use matlab in basic (32bit)/Classic theme, if you are using a windows 7 os (Go to desktop right click->personalize->theme -> windows classic-Apply). Good Luck
0 Comments
Heber Farnsworth
on 17 Sep 2013
Same problem for me with 2013b and windows 7 enterprise (sp1). Changing the theme didn't help though. This is a brand new system and brand new installation.
0 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!