Why am I unable to plot and getting a Java error message when I start MATLAB R2014b?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 30 de Oct. de 2014
Editada: MathWorks Support Team
el 13 de Feb. de 2026 a las 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 =============
Respuesta aceptada
MathWorks Support Team
el 5 de Feb. de 2026 a las 0:00
Editada: MathWorks Support Team
hace alrededor de 3 horas
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!