Why do I get Java exception java.lang.​NoSuchMeth​odError: javax.medi​a.opengl.G​LCapabilit​ies when using CFTOOL in the Curve Fitting Toolbox 3.4 (R2013b)?

1 次查看(过去 30 天)
I'm trying to use cftool to fit a simple data set with a line. The App finds a fit but the plot window in the App is empty. Also, I get these error messages in my MATLAB command window:
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: javax.media.opengl.GLCapabilities.<init>(Ljavax/media/opengl/GLProfile;)V
at com.mathworks.hg.peer.JavaSceneServerPeer.getCaps(JavaSceneServerPeer.java:125)
at com.mathworks.hg.peer.JavaSceneServerPeer.doCreateCanvas(JavaSceneServerPeer.java:915)
at com.mathworks.hg.peer.JavaSceneServerPeer.access$200(JavaSceneServerPeer.java:44)
at com.mathworks.hg.peer.JavaSceneServerPeer$2.run(JavaSceneServerPeer.java:887)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2021-4-7
This is a bug in the Curve Fitting Toolbox R2013b which is caused due to some other version of JOGL shadowing the one installed by MATLAB. 
The workaround for this issue can be found here:https://www.mathworks.com/support/bugreports/1084573

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息

产品


版本

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by