- Update your graphics driver to the latest version and see if the issue is resolved. If not,
- Start MATLAB from command prompt using the following command:
How can I resolve Java error when plotting with R2018b?
조회 수: 30 (최근 30일)
이전 댓글 표시
Martin McHugh
2019년 1월 15일
댓글: Saba Mirzahosseini Barough
2020년 10월 22일
I recently updated to R2018b on a Linux machine (openSUSE 13.2 (Harlequin) (x86_64) 64-bit)
The plot command gives the following error:
Exception in thread "AWT-EventQueue-0": java.lang.RuntimeException: Waited 5000ms for: <9c124b, 20d9054>[count 2 [ add. 0, orig 2], qsz 0, owner <Startup Class Loader>, add.owner Startup Class Loader-SharedResourceRunner] - <AWT-EventQueue-0>
at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:199)
at com.jogamp.opengl.GLProfile.getDefaultDevice(GLProfile.java:2003)
at com.jogamp.opengl.GLCapabilities.<init>(GLCapabilities.java:84)
at com.mathworks.hg.peer.GLCanvasPeerFactory.getCaps(GLCanvasPeerFactory.java:22)
at com.mathworks.hg.peer.GLCanvasPeerFactory.createHGCanvasPeerWithComponent(GLCanvasPeerFactory.java:63)
at com.mathworks.hg.peer.GraphicsPeerWithComponent.createJOGLCanvas(GraphicsPeerWithComponent.java:31)
at com.mathworks.hg.peer.GraphicsPeer.doCreateCanvas(GraphicsPeer.java:91)
at com.mathworks.hg.peer.GraphicsPeer.access$100(GraphicsPeer.java:14)
at com.mathworks.hg.peer.GraphicsPeer$1.run(GraphicsPeer.java:145)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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.awt.EventQueue.dispatchEvent(EventQueue.java:726)
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)
댓글 수: 0
채택된 답변
Areej Varamban Kallan
2019년 1월 21일
편집: Areej Varamban Kallan
2019년 1월 21일
Hi Martin,
Please try the following steps:
matlab -noopengl
Please note that the operating system openSUSE 13.2 is not supported by MathWorks and MATLAB is not qualified on this platform. A list supported operating systems can be found here
댓글 수: 4
Hyun-su Kim
2020년 3월 6일
Hi, the second solution works for me too. One more question is that do I have to do this always? So icon in the start menu is not useful anymore?
추가 답변 (1개)
Nashmia Ziafat
2019년 3월 18일
Hi!
I am the having same problem.I have tried both suggestions but are not working for me.Is there any other option?
댓글 수: 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!