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.dylibJavaVM FATAL: Failed to load the jvm library.JavaVM: Failed to load JVM: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bundle/Libraries/libserver.dylibJavaVM FATAL: Failed to load the jvm library.JavaVM: Failed to load JVM: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bundle/Libraries/libserver.dylibJavaVM 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/matlabMarkus-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.dylibPlease 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 -versionjava version "13.0.2" 2020-01-14Java(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
Best Answer