Why do I get "Error: JRE 8 not found" when I try to run MATLAB Apple Silicon Platform Open Beta?

5 views (last 30 days)
I installed MATLAB Apple Silicon Platform Open Beta on my Apple Silicon Mac, and I also installed the Amazon Correto 8 Java Virtual Machine, but when I try to run MATLAB I still get:
Error: JRE 8 not found
JRE 8 is required for MATLAB R2022b Apple Silicon Platform Open Beta 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 3 Apr 2023
This error can be caused by not having the correct version of Amazon Corretto 8 installed. Please confirm that you have the correct version of Amazon Corretto 8 by checking the version in Terminal:
  1. Open Finder and go to Applications then open the Utilities folder and launch Terminal
  2. Execute:
    file /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre/bin/java
  3. The expected output ends with: 
    /Contents/Home/jre/bin/java: Mach-O 64-bit executable arm64
If you get a different output, you should uninstall and reinstall Amazon Corretto 8. Be sure to select the .pkg file for macOS aarch64 from the Downloads page.
Once you have confirmed that you have the correct version of Amazon Corretto 8 installed, execute these commands in Terminal, then try to launch MATLAB:
cd /Applications/MATLAB_R2022b_Beta.app/bin
./matlab_jenv /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!