Use Java 11 jar files in Matlab

9 visualizaciones (últimos 30 días)
Moritz Wahlenmeier
Moritz Wahlenmeier el 8 de Jun. de 2022
Comentada: Michal el 31 de Ag. de 2022
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!

Respuesta aceptada

Michal
Michal el 30 de Ag. de 2022
Editada: Michal el 30 de Ag. de 2022
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 comentario
Michal
Michal el 31 de Ag. de 2022
See discussion here, regarding future scenarios of MATLAB Java support.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Java Package Integration en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by