Legacy MATLAB R2009b and R2015b stopped working after update from MacOSX 10.11 to 10.13

조회 수: 5 (최근 30일)
Dear Experts,
I have been running Mac OSX 10.11.6 (El Capitan) for quite some years, and using legacy MATLAB 2009b and 2015b without any problem.
After the update to OSX 10.13.6 (High Sierra), both versions stopped working and complain about missing JAVA environement.
matlab 2009b produces this error.
/Applications/MATLAB_R2009b.app/bin/matlab: line 1197: [: /Library/Internet: binary operator expected
/Applications/MATLAB_R2009b.app/bin/matlab: line 1199: [: /Library/Internet: binary operator expected
/Applications/MATLAB_R2009b.app/bin/matlab: line 1201: [: /Library/Internet: binary operator expected
---------------------------------------------------------------------------
Warning: Cannot locate Java Runtime Environment (JRE) . . .
1. Either a correct JRE was not available for redistribution when
this release was shipped, in which case you should refer to the
Release Notes for additional information about how to get it.
2. Or you have tried to use the MATLAB_JAVA environment variable
to specify an alternate JRE, but MATLAB cannot find it. Please
run 'matlab -n' to determine what value you are using for
MATLAB_JAVA and fix accordingly.
---------------------------------------------------------------------------
JavaVM: Failed to load JVM: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bundle/Libraries/libserver.dylib
JavaVM FATAL: Failed to load the jvm library.
JavaVM: Failed to load JVM: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bundle/Libraries/libserver.dylib
JavaVM FATAL: Failed to load the jvm library.
JavaVM: Failed to load JVM: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bundle/Libraries/libserver.dylib
JavaVM FATAL: Failed to load the jvm library.
Fatal Error on startup: Failed to initialize Java
matlab 2015b produces this error
[1] Terminated: 15 /Applications/MATLAB_R2015b.app/bin/matlab
[2] Terminated: 15 /Applications/MATLAB_R2015b.app/bin/matlab
[3] Terminated: 15 /Applications/MATLAB_R2015b.app/bin/matlab
Markus-MacBook-Pro:~ markus$ ---------------------------------------------------------------------------
Warning: Cannot locate Java Runtime Environment (JRE) . . .
1. Either a correct JRE was not available for redistribution when
this release was shipped, in which case you should refer to the
Release Notes for additional information about how to get it.
2. Or you have tried to use the MATLAB_JAVA environment variable
to specify an alternate JRE, but MATLAB cannot find it. Please
run 'matlab -n' to determine what value you are using for
MATLAB_JAVA and fix accordingly.
---------------------------------------------------------------------------
Warning: Unable to find Java library: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/server/libjvm.dylib
Please check if you have a MATLAB_JAVA environment variable.
Note that MATLAB requires Java version 1.4 or higher.
Warning: Disabling Java support
my Java say this:
java -version
java version "13.0.2" 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
Can anyone help me? I am lost!!
Thanks, Markus

채택된 답변

Walter Roberson
Walter Roberson 2020년 2월 14일
You need to install the Java 6 Legacy Runtime; https://appuals.com/how-to-install-legacy-java-se-6-runtime-on-macos/
Caution: MATLAB R2009b is not expected to work on High Sierra if your region environment is not set up as English USA, except for a small number of other (mostly English) combinations that are expected to work. Apple changed the way that region information is to be fetched. I think it was fixed by R2015b but not R2015a.
R2009b is not supported in High Sierra.
I just tried installing R2009bSP1 on High Sierra, but I got a "critical error" about a missing .enc file.
  댓글 수: 11
Markus Gschwind
Markus Gschwind 2020년 2월 19일
What I did now:
I referenced MATALB_JAVA to where it was looking for it initially
export MATLAB_JAVA="/Applications/MATLAB_R2015b.app/sys/java/jre/maci64/jre/"
and it seems to WORK!!
Thank you for all the help!
Walter Roberson
Walter Roberson 2020년 2월 21일
Sounds good!
Those 10+ year old versions are difficult to work with these days. MATLAB's packaging improved a lot when they went for the MATLAB_R20xx.app directory structure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by