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
0 个评论
采纳的回答
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 个评论
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 Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!