Why am I unable to plot and getting a Java error message when I start MATLAB R2014b?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 30 Oct 2014
Modifié(e) : MathWorks Support Team
le 13 Fév 2026 à 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 =============
Réponse acceptée
MathWorks Support Team
le 5 Fév 2026 à 0:00
Modifié(e) : MathWorks Support Team
il y a environ 3 heures
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!