- delete the MATLAB_JAVA (not JAVA_HOME) environment variable to use the bundled JRE.
- install the latest Java 6 and set MATLAB_JAVA to point that
Reset JVM to default
13 次查看(过去 30 天)
显示 更早的评论
Hello! I recently changed my Java VM to Java 1.7.0 in Matlab 2011b. I also set the environmental variable JAVA_HOME to the current JDK folder. As a result I get a lot of JAVA errors and Maltab crashes when I want to save an m.file. Hence, I want to reset Matlab to the default settings. How can I restore the default JVM? Should I delete the environmental variable? Is it also necessary to delete the JAVA_HOME system variable?
Thanks, Steffen
0 个评论
采纳的回答
Malcolm Lidierth
2014-2-27
R2011b needs - and on Windows is bundled with - Java 6.
Either:
You can use Java 7 - but not without problems.
3 个评论
Malcolm Lidierth
2014-2-27
Do that with Windows using the System Properties option in the Windows Control Panel. On Windows 7: Start -> Control Panel -> System & Security -> System. Select 'Advanced system settings' on the left, then the Environment Variables button.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!