Use Java 11 jar files in Matlab

조회 수: 2 (최근 30일)
Moritz Wahlenmeier
Moritz Wahlenmeier 2022년 6월 8일
댓글: Michal 2022년 8월 31일
Hello,
i'm trying to use a java 11 .jar file in my application. As far as i know Matlab can only run Java 8 .jar files.
Is there a way to work around this?
Thanks for your help in advance!

채택된 답변

Michal
Michal 2022년 8월 30일
편집: Michal 2022년 8월 30일
You can use following java compiler (javac) option:
--release <release>
Compile for a specific VM version. Supported targets: 6, 7, 8, 9, 10, 11
which generate JAR file for specific JAVA version (release).
But I don't know what to do in case you want to run Java 8 compiled JAR file on future versions of MATLAB with JAVA 11 internal engine. TMW does not presents any road-map for internal java engine regarding future MATLAB releases.
  댓글 수: 1
Michal
Michal 2022년 8월 31일
See discussion here, regarding future scenarios of MATLAB Java support.

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by