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

 채택된 답변

Malcolm Lidierth
Malcolm Lidierth 2014년 2월 27일

1 개 추천

R2011b needs - and on Windows is bundled with - Java 6.
Either:
  1. delete the MATLAB_JAVA (not JAVA_HOME) environment variable to use the bundled JRE.
  2. install the latest Java 6 and set MATLAB_JAVA to point that
You can use Java 7 - but not without problems.

댓글 수: 3

Steffen
Steffen 2014년 2월 27일
How can I delete the environment variable? I only found setenv & getenv...
Thanks! Steffen
Malcolm Lidierth
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.
Steffen
Steffen 2014년 5월 9일
Thanks a lot! It worked!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

태그

질문:

2014년 2월 24일

댓글:

2014년 5월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by