fatal error on startup

조회 수: 38 (최근 30일)
Baptista
Baptista 2025년 3월 8일
답변: Jack 2025년 3월 8일
fatal error on startup java exception occurred: java.lang.noclassdelfounderror: could not initialize class com.mathworks.mde.desk.mldesktop
  댓글 수: 1
Baptista
Baptista 2025년 3월 8일
how to solve this problem

댓글을 달려면 로그인하십시오.

답변 (1개)

Jack
Jack 2025년 3월 8일
Hey Baptista,
This error usually happens when MATLAB's Java environment is corrupted or there are issues with the installation. Here are some steps to fix it:
  1. Restart MATLAB as Administrator
  • Close MATLAB completely.
  • Right-click the MATLAB icon and select Run as administrator.
  1. Reset MATLAB Preferences
  • Open File Explorer and go to: C:\Users\YourUsername\AppData\Roaming\MathWorks\MATLAB
  • Rename the folder matching your MATLAB version (e.g., R2023b) to something like R2023b_backup.
  • Restart MATLAB and check if the issue is resolved.
  1. Start MATLAB Without Java (Test Mode)
  • Open Command Prompt (cmd) and run: matlab -nojvm
  • If MATLAB starts, the problem is Java-related. You may need to reinstall MATLAB or check your Java installation.
  1. Reinstall MATLAB
  • If the issue persists, try uninstalling and reinstalling MATLAB.
Follow me so you can message me anytime with future MATLAB questions. If this helps, please accept the answer as well.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by