MATLAB 2024a issues with Java version in Apple Silicon

Hi @minajung,

Let me break it down the way I did it and let me know if it works for you :

  1. Download Amazon-Correto-8 from Downloads for Amazon Corretto 8 - Amazon Corretto 8 (this package: https://corretto.aws/downloads/latest/amazon-corretto-8-aarch64-macos-jdk.pkg).
  2. Install the package based on the steps here: Amazon Corretto 8 Installation Instructions for macOS 11 or later - Amazon Corretto 8 and JDK 8 should be installed in the location /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/
  3. Open MATLAB (any of the Apple Silicon versions)
  4. run version -java in the MATLAB command window verify that it gives Java 11.0.23+9-LTS with Amazon.com Inc. OpenJDK 64-Bit Server VM mixed mode
  5. In the MATLAB command window: run jenv('/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre') to change to Amazon-correto-8.
  6. Restart MATLAB.
  7. running version -java now should give Java 1.8.0_412-b08 with Amazon.com Inc. OpenJDK 64-Bit Server VM mixed mode

After this start Brainstorm and run the Tutorial and everything should work fine.

1 Like