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

4 次查看(过去 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