Cannot Uninstall Previous Matlab Versions Due to Missing JVM
6 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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 Center 和 File 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!