Do i have a problem with java?

4 Ansichten (letzte 30 Tage)
Gerard Nava
Gerard Nava am 1 Jun. 2018
Beantwortet: Naga am 26 Sep. 2024
Exception in thread "AWT-EventQueue-0" com.mathworks.util.event.EventListenerInvocationException: Error firing event:
caused by:
java.lang.NoClassDefFoundError: com/teamdev/jxbrowser/chromium/LoggerProvider
at com.mathworks.html.jxbrowser.chromium.logging.JxBrowserChromiumLogger$LogType.<clinit>(JxBrowserChromiumLogger.java:20)
at com.mathworks.html.jxbrowser.chromium.logging.JxBrowserChromiumLogger.init(JxBrowserChromiumLogger.java:62)
at com.mathworks.html.jxbrowser.chromium.JxBrowserChromiumFactory.<clinit>(JxBrowserChromiumFactory.java:21)
at com.mathworks.mlwidgets.html.ChromiumConfig.initialize(ChromiumConfig.java:25)
at com.mathworks.mlwidgets.html.HtmlComponentFactory$HtmlComponentType.beforeBrowserCreation(HtmlComponentFactory.java:85)
at com.mathworks.mlwidgets.html.HtmlComponentFactory.buildHtmlComponentForType(HtmlComponentFactory.java:282)
at com.mathworks.mlwidgets.html.HtmlComponentFactory.createBrowserForTypes(HtmlComponentFactory.java:221)
at com.mathworks.mlwidgets.html.HtmlComponentFactory.buildHtmlComponent(HtmlComponentFactory.java:194)
at com.mathworks.mlwidgets.html.HtmlComponentFactory.buildHtmlComponent(HtmlComponentFactory.java:147)
at com.mathworks.mde.help.MLHelpBrowser.createHtmlComponent(MLHelpBrowser.java:129)
at com.mathworks.mde.help.MLHelpBrowser.<init>(MLHelpBrowser.java:125)
at com.mathworks.mde.help.DocCenterBrowserHandler$OpenInNewBrowser.openBrowser(DocCenterBrowserHandler.java:339)
at com.mathworks.mde.help.DocCenterBrowserHandler$MLHelpBrowserRunnable.createAndShowBrowser(DocCenterBrowserHandler.java:258)
at com.mathworks.mde.help.DocCenterBrowserHandler$MLHelpBrowserRunnable.run(DocCenterBrowserHandler.java:246)
at com.mathworks.mde.help.DocCenterBrowserHandler.doHelpBrowserTask(DocCenterBrowserHandler.java:53)
at com.mathworks.mde.help.DocCenterBrowserHandler.doHelpBrowserTask(DocCenterBrowserHandler.java:47)
at com.mathworks.mde.help.DocCenterBrowserHandler.doHelpBrowserTask(DocCenterBrowserHandler.java:40)
at com.mathworks.mde.help.DocCenterBrowserHandler.setCurrentLocation(DocCenterBrowserHandler.java:391)
at com.mathworks.mde.help.DocCenterBrowserHandler.showDemos(DocCenterBrowserHandler.java:637)
at com.mathworks.mde.help.DocCenterBrowserHandler.showDemos(DocCenterBrowserHandler.java:611)
at com.mathworks.mde.help.HelpBrowserBridge.showDemos(HelpBrowserBridge.java:182)
at com.mathworks.mlservices.MLHelpServices.showDemos(MLHelpServices.java:246)
at com.mathworks.mde.examples.ExampleGalleryBridge.launchExampleGallery(ExampleGalleryBridge.java:52)
at com.mathworks.mde.examples.ExampleGalleryBridge.openExampleGallery(ExampleGalleryBridge.java:28)
at com.mathworks.mlservices.MLHelpServices.showExampleGallery(MLHelpServices.java:864)
at com.mathworks.mde.desk.MLDesktop$ExamplesAction.actionPerformed(MLDesktop.java:3180)
at com.mathworks.mwswing.ChildAction.actionPerformed(ChildAction.java:214)
at com.mathworks.toolstrip.factory.TSFactory$ListListenerBridge.listItemSelected(TSFactory.java:1505)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.mathworks.util.event.EventListenerList$1.invoke(EventListenerList.java:72)
at com.sun.proxy.$Proxy7.listItemSelected(Unknown Source)
at com.mathworks.toolstrip.plaf.TSListCellRenderer.mouseReleased(TSListCellRenderer.java:521)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
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.ClassNotFoundException: com.teamdev.jxbrowser.chromium.LoggerProvider
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
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)
... 67 more
at com.mathworks.util.event.EventListenerList$1.invoke(EventListenerList.java:83)
at com.sun.proxy.$Proxy7.listItemSelected(Unknown Source)
at com.mathworks.toolstrip.plaf.TSListCellRenderer.mouseReleased(TSListCellRenderer.java:521)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
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)
Exception in thread "AWT-EventQueue-0" com.mathworks.util.event.EventListenerInvocationException: Error firing event:
caused by:
java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.html.jxbrowser.chromium.JxBrowserChromiumFactory
at com.mathworks.mlwidgets.html.ChromiumConfig.initialize(ChromiumConfig.java:25)
at com.mathworks.mlwidgets.html.HtmlComponentFactory$HtmlComponentType.beforeBrowserCreation(HtmlComponentFactory.java:85)
at com.mathworks.mlwidgets.html.HtmlComponentFactory.buildHtmlComponentForType(HtmlComponentFactory.java:282)
at com.mathworks.mlwidgets.html.HtmlComponentFactory.createBrowserForTypes(HtmlComponentFactory.java:221)
at com.mathworks.mlwidgets.html.HtmlComponentFactory.buildHtmlComponent(HtmlComponentFactory.java:194)
at com.mathworks.mlwidgets.html.HtmlComponentFactory.buildHtmlComponent(HtmlComponentFactory.java:147)
at com.mathworks.mde.help.MLHelpBrowser.createHtmlComponent(MLHelpBrowser.java:129)
at com.mathworks.mde.help.MLHelpBrowser.<init>(MLHelpBrowser.java:125)
at com.mathworks.mde.help.DocCenterBrowserHandler$OpenInNewBrowser.openBrowser(DocCenterBrowserHandler.java:339)
at com.mathworks.mde.help.DocCenterBrowserHandler$MLHelpBrowserRunnable.createAndShowBrowser(DocCenterBrowserHandler.java:258)
at com.mathworks.mde.help.DocCenterBrowserHandler$MLHelpBrowserRunnable.run(DocCenterBrowserHandler.java:246)
at com.mathworks.mde.help.DocCenterBrowserHandler.doHelpBrowserTask(DocCenterBrowserHandler.java:53)
at com.mathworks.mde.help.DocCenterBrowserHandler.doHelpBrowserTask(DocCenterBrowserHandler.java:47)
at com.mathworks.mde.help.DocCenterBrowserHandler.doHelpBrowserTask(DocCenterBrowserHandler.java:40)
at com.mathworks.mde.help.DocCenterBrowserHandler.invoke(DocCenterBrowserHandler.java:381)
at com.mathworks.mde.help.HelpBrowserBridge.invoke(HelpBrowserBridge.java:39)
at com.mathworks.mlservices.MLHelpServices.invoke(MLHelpServices.java:40)
at com.mathworks.mde.desk.MLDesktop$HelpProductPageAction.actionPerformed(MLDesktop.java:3082)
at com.mathworks.mwswing.ChildAction.actionPerformed(ChildAction.java:214)
at com.mathworks.toolstrip.factory.TSFactory$ListListenerBridge.listItemSelected(TSFactory.java:1505)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.mathworks.util.event.EventListenerList$1.invoke(EventListenerList.java:72)
at com.sun.proxy.$Proxy7.listItemSelected(Unknown Source)
at com.mathworks.toolstrip.plaf.TSListCellRenderer.mouseReleased(TSListCellRenderer.java:521)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
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)
at com.mathworks.util.event.EventListenerList$1.invoke(EventListenerList.java:83)
at com.sun.proxy.$Proxy7.listItemSelected(Unknown Source)
at com.mathworks.toolstrip.plaf.TSListCellRenderer.mouseReleased(TSListCellRenderer.java:521)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
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)
  1 Kommentar
Walter Roberson
Walter Roberson am 1 Jun. 2018
Under what circumstances does this show up?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Naga
Naga am 26 Sep. 2024
Hello Gerard,
The "NoClassDefFoundError" error is thrown because MATLAB was not able to locate Java Runtime libraries that are used by the Integrated Development Environment (MATLAB IDE). There are several possible causes to this issue:
  • The installation is corrupted and there are .jar files missing from the MATLAB installation folder.
  • The classpath.txt file is missing references to Java Runtime libraries.
  • One or several internal MATLAB functions are shadowed by custom functions.
Let us start from the bottom (C):
1. Are there M-files on the MATLAB search path with the same name as internal MATLAB functions?
The search path defines the location where MATLAB looks for an M-file. For example, if I type "plot(1:10)" at the command line, MATLAB looks in all the folders on the search path for an M-file with the name "plot.m". If several files named "plot.m" exist, MATLAB uses the one at the top of the search path (the first one it encounters). If I create my own "plot.m" function and save it in the start-up folder, this file will be at the top of the search path and MATLAB will call it every time "plot" is used in MATLAB. This is what we call "shadowing."
To take a look at the MATLAB search path, execute "pathtool" in the Command Window. This will open up the Set Path window with the list of folders that MATLAB parses. The start-up folder should be at the top.
You can try to restore the search path to the installation default by executing the following commands:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
However, this will not remove the start-up directory from the MATLAB search path. If the start-up folder contains M-files, try to remove them or move them to another folder which is not on the search path.
2. If the issue still persists, the installation might be corrupted. Remove MATLAB completely and install it again to resolve the issue. 
3. In some scenarios the issue could be due to permission access on the computer. Please make sure that the customer has the correct read and write permissions on their computer and are using the correct username account.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by