MATLAB 2024a issues with Java version in Apple Silicon

Hi @minajung,

Thanks for the link to the MathWorks question, that shed some light on the cause and to find the solution which is below:

Solution
The solution is to install a JDK8 compatible with Apple Silicon, as indicated in this post at MathWorks:

Steps:

  1. Download Amazon-Correto-8 for Apple Silicon (architecture macOS aarch64) from here:
    Downloads for Amazon Corretto 8 - Amazon Corretto 8

  2. Install the it following the provided instructions:
    Amazon Corretto 8 Installation Instructions for macOS 11 or later - Amazon Corretto 8

  3. Start Matlab, and change the Java version that it uses with the command
    >> jenv('system')
    This command will try to find Java8 installed in step 2.

  4. Restart Matlab

  5. Verify that Matlab is using Java 8 with the command:
    >> version -java
    which should return:
    Java 1.8.0_412-b08 with Amazon.com Inc. OpenJDK 64-Bit Server VM mixed mode

At this point you should be able to run Brainstorm and its functions without further issues.