Warning : Unable to create com.mathworks.mde.workspaceBrowser, for details see %temp%\MATLABDesktopCreateError.log
7 次查看(过去 30 天)
显示 更早的评论
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at com.mathworks.mlwidgets.array.UserActionLogger.logActionEventData(UserActionLogger.java:241)
at com.mathworks.mlwidgets.array.UserActionLogger.logWSBOpenEventData(UserActionLogger.java:105)
at com.mathworks.mlwidgets.workspace.WorkspaceTable.<init>(WorkspaceTable.java:132)
at com.mathworks.mlwidgets.workspace.WorkspaceTable.<init>(WorkspaceTable.java:83)
at com.mathworks.mde.workspace.WorkspaceBrowser.<init>(WorkspaceBrowser.java:167)
at com.mathworks.mde.workspace.WorkspaceBrowser.getInstance(WorkspaceBrowser.java:96)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.mathworks.widgets.desk.DTClient.createComponent(DTClient.java:311)
at com.mathworks.widgets.desk.Desktop.createClientComponent(Desktop.java:6487)
at com.mathworks.mde.desk.MLDesktop.createClientComponent(MLDesktop.java:1054)
at com.mathworks.widgets.desk.Desktop.createClientComponentWrapper(Desktop.java:6501)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:7200)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:7187)
at com.mathworks.widgets.desk.Desktop.restoreLayout(Desktop.java:6004)
at com.mathworks.mde.desk.MLDesktop.restoreLayout(MLDesktop.java:1674)
at com.mathworks.widgets.desk.Desktop.restoreLayout(Desktop.java:5727)
at com.mathworks.widgets.desk.Desktop.restorePreviousLayout(Desktop.java:4571)
at com.mathworks.mde.desk.MLDesktop.restorePreviousLayout(MLDesktop.java:1624)
at com.mathworks.widgets.desk.Desktop.initMainFrame(Desktop.java:294)
at com.mathworks.mde.desk.MLDesktop.initMainFrameFromThread(MLDesktop.java:858)
at com.mathworks.mde.desk.MLDesktop.access$600(MLDesktop.java:225)
at com.mathworks.mde.desk.MLDesktop$Initializer.run(MLDesktop.java:1237)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 38 more
0 个评论
回答(1 个)
Chetan
2023-8-31
Based on my understanding, the issue you are facing is related to the JAXB APIs. Starting from Java SE 9, the JAXB APIs are considered Java EE APIs and are no longer included on the default classpath. In Java 11, they have been completely removed from the JDK.
To resolve this issue, you can add the necessary dependencies to the POM file so that the FAT jar includes them in the ML sandbox. Here is an example of how to add the dependency:
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
You can refer to the following article for more information on adding dependencies to the POM file:
Hope it helps!!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!