Cannot Uninstall Previous Matlab Versions Due to Missing JVM

조회 수: 7 (최근 30일)
Tomas N.
Tomas N. 2025년 5월 13일
댓글: Tomas N. 2025년 5월 16일
Since installing the last several versions of Matlab, my organization made a changeover from Oracle Java to Temurin JRE8. Matlab runs fine, however, when I try to uninstall any previous versions of Matlab or Matlab Runtime (there are reasons, but they are not relevant here) an error occurs, stating that the JVM cannot start:
I've tried copying the JRE folder (in Program Files\Temurin) to the Matlab/Matlab Runtime folders, but in doing so the process instead simply silently crashes in the background.
Before I just delete the Matlab folders and remove them from the environment PATH, are there any suggestions? It's a bit of a strange one, I know, but just wondering if anyone has encountered this.

채택된 답변

Jacob Mathew
Jacob Mathew 2025년 5월 15일
Hey Tomas,
It seems like the official solution from the MathWorks Support Team is to manually remove the MATLAB Installation folder in case the uninstall fails as referenced in the following community post:
If you want to remove the preferences associated with the version as well, then you can refer to the following documentation to locate the folder:
It mentions the use of a MATLAB command "prefdir" hence remeber to double check this before deleting the installation in case your preference folder is not in the default location.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by