Why does MATLAB crash on my Apple Silicon Mac after installing a JRE?
96 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2023 年 10 月 17 日
編集済み: MathWorks Support Team
2025 年 3 月 7 日
I'm encountering a crash with MATLAB on my Apple Silicon Mac immediately after its installation. How can I resolve this issue?
採用された回答
MathWorks Support Team
2025 年 2 月 25 日
編集済み: MathWorks Support Team
2025 年 3 月 7 日
When you install MATLAB on a computer using the Apple Silicon installer, a Java Runtime must be installed along with the MATLAB installation. Sometimes MATLAB is not able to determine the path that your Java Runtime is installed and will not open. You can resolve this issue using the following steps:
1) Install Amazon Corretto 11, if you have not already done so, and make a note of the installation folder.
The default location for Amazon Corretto 11 is: /Library/Java/JavaVirtualMachines
For more information on Java requirements and Amazon Corretto installation, see MATLAB on Apple Silicon Macs.
2) Run the following command from a Terminal (not MATLAB). This command will set MATLAB to use the specified (Amazon Corretto) Java, even if there is another Java version installed (e.g., Oracle).
./matlab_jenv <path to Java jre>
Note: You may need to navigate to the <matlabroot>/bin directory to execute the command above.
If Amazon Corretto is installed in the default folder, then <path to Java jre> is expected to be /Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home
You can list the installed JVM on your machine with the following command:
/usr/libexec/java_home -V
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!