Why am I unable to plot and getting a Java error message when I start MATLAB R2014b?
6 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2014-10-30
编辑: MathWorks Support Team
2026-2-13,17:31
Everything else in MATLAB works fine, but I am unable to use the "plot" command and the following error message is displayed at startup. In addition, MATLAB crashes when I exit.
========== beginning of error message =============
Exception in thread "Startup Class Loader" java.lang.UnsatisfiedLinkError: jogamp.common.jvm.JVMUtil.initialize(Ljava/nio/ByteBuffer;)Z at jogamp.common.jvm.JVMUtil.initialize(Native Method) at jogamp.common.jvm.JVMUtil.<clinit>(JVMUtil.java:58) at com.jogamp.common.os.Platform$1.run(Platform.java:212) at java.security.AccessController.doPrivileged(Native Method) at com.jogamp.common.os.Platform.<clinit>(Platform.java:179) at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:83) at com.mathworks.hg.peer.JavaSceneServerPeer.initializeJOGL(JavaSceneServerPeer.java:114) at com.mathworks.hg.peer.JavaSceneServerPeer.<clinit>(JavaSceneServerPeer.java:100) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:190) at com.mathworks.mde.desk.StartupClassLoader.loadClass(StartupClassLoader.java:258) at com.mathworks.mde.desk.StartupClassLoader.access$900(StartupClassLoader.java:25) at com.mathworks.mde.desk.StartupClassLoader$2.run(StartupClassLoader.java:244) at java.lang.Thread.run(Thread.java:745)
========== end of error message =============
采纳的回答
MathWorks Support Team
2026-2-5,0:00
编辑:MathWorks Support Team
about 2 hours 前
You might have installed the Maple toolbox for MATLAB on your machine and allowed Maple to interface with MATLAB during installation. This creates a file called .maplerc.sh on your system which is executed during MATLAB's startup and prevents MATLAB from finding the appropriate JOGL and other libraries.
On Mac, this file is located in:
Applications/MATLAB_R2014b.app/bin/.maplerc.sh
To find the folder where this file is located, you can type:
which -all .maplerc.sh
at the MATLAB Command Window.
The latest update at this time is MAPLE 18.02:
which seems to be compatible with MATLAB R2014a.
These incompatibility issues seem to have surfaced in MATLAB R2014b. Since this version of the Maple toolbox does not seem compatible with the latest release of MATLAB, the best option at this time is to uninstall the Maple toolbox for MATLAB or not prompt it to interface with MATLAB upon installation. Since this is not a MathWorks product, please contact Maple support directly for additional requests or inquiries.
Another workaround is as follows:1. Make a copy of the file named .maplercOld.sh for instance2. Open the .maplerc.sh file and delete all its content3. Save and close the file
Setting this file to empty resolves the issues with MATLAB, and you should be able to plot again. However, MATLAB will display a warning at startup about the maplerc file being empty.
0 个评论
更多回答(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!