Matlab closing automatically when plotting data or opening an existing saved figure.

11 visualizaciones (últimos 30 días)
I am running Matlab (7.5) -R2007b on Mac OSX 10.5.8. Recently I updated java (using auto update in Mac). However, after that I am unable to plot or open a figure in matlab. I can type in command window, but every time I am trying to plot something, Matlab is closing automatically. I even can't open an existing figure. Any help is most welcome.
  1 comentario
Shannon
Shannon el 7 de Jul. de 2011
I am having the exact same problem. I have the same Mac, but am using Matlab version 7.6.0.324 (R2008a).

Iniciar sesión para comentar.

Respuestas (4)

Brian Arnold
Brian Arnold el 26 de Jul. de 2011
There is an incompatibility in a recent Java update (1.6.0_26) affecting MATLAB versions R2007a, R2007b and R2008a, that can be worked around by following these steps:
1. Close MATLAB, if it is running.
2. In Terminal or xterm , type:
open -a TextEdit /Applications/MATLAB_R2008a/bin/.matlab7rc.sh
In the path above, change "/Applications/MATLAB_R2008a/bin/" accordingly depending on your version of MATLAB's root folder name.
3. In the editor, navigate to Line 410 to locate:
DYLD_LIBRARY_PATH=
This line is a part of the following code in the "mac" section of matlab7rc.sh:
if [ "$DYLD_LIBRARY_PATH" != "" ]; then
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
else
DYLD_LIBRARY_PATH=
fi
4. Change the line from
DYLD_LIBRARY_PATH
to
DYLD_LIBRARY_PATH=/System/Library/Frameworks/JavaVM.framework/Libraries
For users on MATLAB R2007a and R2007b, after making the change in the "mac" section, make the same change the "maci" section (right below the "mac" section).
5. Save the changes (Command-S).
6. Restart MATLAB.
  1 comentario
Christian
Christian el 30 de Ag. de 2013
The problem is exactly the same as mine (R2007b on Mac OS X 10.5.8) - crash after any plotting. I tried the above, but the "mac" section of my .matlab7rc.sh file has LD_LIBRARY_PATH instead of DYLD_LIBRARY_PATH both times (otherwise the lines are as described above). The "maci" section is exactly as above. I made the change to the "maci" section, no luck. Tried the same change with LD_LIBRARY_PATH=/System/Library/Frameworks/JavaVM.framework/Libraries in the "mac" section, still no luck. No error message, just an ungraceful exit. I'd be very grateful for ideas.

Iniciar sesión para comentar.


Wayne
Wayne el 8 de Jul. de 2011
Same issue with Matlab R2007b running on Mac OSX 10.6.8. I tried installing an older version of Java, but could not get Matlab to recognize it either through the Java Preferences utility or the the environment variable JAVA_JVM_VERSION.

Marilee Nugent
Marilee Nugent el 22 de Jul. de 2011
I'm having the same problem as Wayne. Does no one have a solution? I'll never finish my PhD at this rate.
  1 comentario
Walter Roberson
Walter Roberson el 23 de Jul. de 2011
I did have one person report that they were able to work again after they reinstalled the previous version of Java.

Iniciar sesión para comentar.


GeoSklivanitis Sklivanitis
GeoSklivanitis Sklivanitis el 25 de Oct. de 2011
Thank you Brian that really worked for me running R2008a with 10.5.8.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by