매트랩 설치오류-Failed to initialize Java

9 ビュー (過去 30 日間)
Mu Jin Jeon
Mu Jin Jeon 2020 年 4 月 15 日
回答済み: Jemima Pulipati 2021 年 1 月 29 日
안녕하세요 매트랩 R2019a를 설치하고 실행하는데
Failed to initialize Java 라는 문구가 나옵니다. 해결 방법을 알고 싶습니다.
자바는 64비트를 설치했고
윈도우 10입니다.

回答 (1 件)

Jemima Pulipati
Jemima Pulipati 2021 年 1 月 29 日
Hello,
From my understanding the issue you are facing appears to be due to use of incorrect JRE.
When MATLAB is shipped, the JRE used by the installed product is located in the directory (example for R2019a , win64):
C:\Program Files\MATLAB\R2019a\sys\java\jre\win64\jre
The JRE used by your current running instance of MATLAB can be determined by the output of the following command:
>> java.lang.System.getProperty('java.home')
Ideally, the output from the above command must point to the shipped JRE. I would recommend changing your ‘MATLAB_JAVA’ system environment variable to point MATLAB to use the shipped version of the JRE. This should resolve the issue.
If you want to use JVM Software other than the one shipped with MATLAB, refer this.

カテゴリ

Help Center および File Exchange설치 및 라이선스 부여 소개 についてさらに検索

Community Treasure Hunt

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

Start Hunting!