MATLAB startup failure MAC 64-bit

2 次查看(过去 30 天)
Randall
Randall 2023-9-6
回答: Dinesh 2023-9-18
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"

回答(1 个)

Dinesh
Dinesh 2023-9-18
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.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by