Effacer les filtres
Effacer les filtres

MATLAB startup failure MAC 64-bit

2 vues (au cours des 30 derniers jours)
Randall
Randall le 6 Sep 2023
Réponse apportée : Dinesh le 18 Sep 2023
I receive the followin message upon startup and after startup.m runs. My platform is a Mac 64 bit
"Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException"
I cannot use command line tools such as ls. Typing ls yeilds
"ls: .: Operation not permitted"

Réponses (1)

Dinesh
Dinesh le 18 Sep 2023
Hi Randall,
I understand that you are encountering an error when running the startup.m file on your Mac. Since you are unable to use command line tools, I assume that you recently upgraded your macOS to Big Sur, Monterey, or Ventura. Otherwise, you may not have the necessary privileges to access protected directories and files on your device.
To resolve this issue, you can try the following approaches:
  • Ensure that your macOS meets the system requirements for the version of MATLAB you are trying to launch. If you have recently updated to a new macOS version, you might need to update to a newer version of MATLAB as well.
  • Make sure that full disk access is enabled for both the terminal and MATLAB:
1. Go to the Apple menu > System Settings > Privacy & Security.
2. Find and select "Full Disk Access" from the list.
3. Find MATLAB and the terminal in the list and toggle the button to the "on" position.
4. Now try command line tools and run the MATLAB.
  • Verify that the startup.m file is in the user path of MATLAB. The default userpath folder for the Mac platform is $home/Documents/MATLAB.
  • Check if the startup.m file has proper file permissions.
For more details you can refer the following MATLAB documentation
  1. https://in.mathworks.com/help/matlab/ref/startup.html
  2. https://in.mathworks.com/help/matlab/ref/userpath.html
  3. https://in.mathworks.com/support/requirements/previous-releases.html
Also, this MATLAB Answers thread could be helpful.
  1. https://in.mathworks.com/matlabcentral/answers/95806-why-will-matlab-not-start-up-properly-on-macos
If the issue persists, please contact MATHWORKS support by visiting the following link:
Hope this helps.
Best Regards,
Dinesh Reddy Gatla.

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Tags

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by