fatal error on startup of matlab,with java exception occured

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)

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

Products

Release

R2021a

Tags

Asked:

on 12 Jun 2022

Answered:

on 15 Sep 2023

Community Treasure Hunt

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

Start Hunting!