deploytool.exe comes with Unable to load Java Runtime Environment.

조회 수: 4 (최근 30일)
Robert Steiner
Robert Steiner 2018년 5월 8일
답변: OCDER 2018년 9월 10일
Matlab 2017a works and no other java environment other than matlab is installed.
The deploytool in Matlab works as expected but if I use the compiled version I get the error:
C:\Users\SmartUser>deploytool
Error: Unable to load Java Runtime Environment.
: C:\Program Files\MATLAB\R2017a\sys\java\jre\win64\jre\bin\server\jvm.dll
The same error I get if I use !deploytool in Matlab.
The OS is Windows 10 Enterprise
Thanks for your help! Robert
  댓글 수: 1
Sven Merk
Sven Merk 2018년 9월 10일
I'm having exacly the same issue. Building with the Compiler App insinde MATLAB however works.

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

답변 (1개)

OCDER
OCDER 2018년 9월 10일
Instead of deploytool, use mcc. https://www.mathworks.com/help/compiler/mcc.html
Also, since you do not have java runtime environment, use the "-R -nojvm" option, which means Runtime = no JVM. For example:
mcc -e myMainFile.m -a c:\Users\MyMatlabFiles -R -nojvm

카테고리

Help CenterFile Exchange에서 Java Package Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by