fatal error on startup of matlab,with java exception occured

17 views (last 30 days)
Fail to start up the matlab, futhermore, when i try to uninstall the matlab2021a, the system remind me that “Exception when calling the main function”

Answers (1)

Hornett
Hornett on 15 Sep 2023
Hi Joe,
I understand you are facing issue while starting MATLAB.
This error might have occurred due to Improper installation of MATLAB.
In order to work around the issue, start MATLAB with 'nojvm' tag. Please follow the steps given below:
1. Open Command Prompt and navigate to the drive where you installed MATLAB.
2. Execute the following command to open MATLAB with 'nojvm' tag in Command Prompt:
matlab –nojvm
3. MATLAB Command Window will open up and then you can execute the following commands in it:
>>restoredefaultpath
>>rehash toolboxcache
>>savepath
4. Restart MATLAB normally.
If the above solution does not work, try reinstalling MATLAB.
I hope this resolved your issue

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!