Can Java 11 be used with R2018a Matlab?

3 visualizaciones (últimos 30 días)
Rozerin
Rozerin el 27 de Sept. de 2023
Comentada: Walter Roberson el 27 de Sept. de 2023
I have a Spring Boot maven Java project. In this project, the necessary operations are performed by connecting to Matlab with the cholsolver.jar file. jar file was created with R2018a Matlab version, mcr 9.4 and Java 11. For this, I downloaded the R2018a Matlab version. However, I noticed that this version downloads with Java 1.8.0_144-b01. However, since cholsolver.jar was created with Java 11, I use Java 11 in my project. It passes the test with a warning, but the jar file I obtained with -mvn clean install is problematic and does not work.
The warning: Warning: classpath.txt in the startup directory no longer supported. See <a href="matlab: helpview([docroot '/techdoc/matlab_external/matlab_external.map'],'java_static_path')">The Static Path</a>.
dumpstream:
# Created at 2023-09-27T20:38:53.882
WARNING: An illegal reflective access operation has occurred
# Created at 2023-09-27T20:38:53.885
WARNING: Illegal reflective access by com.mathworks.util.DeleteOnExitShutdownInitializer (file:/C:/Program%20Files/MATLAB/MATLAB%20Runtime/v94/java/jar/util.jar) to field java.io.DeleteOnExitHook.files
# Created at 2023-09-27T20:38:53.885
WARNING: Please consider reporting this to the maintainers of com.mathworks.util.DeleteOnExitShutdownInitializer
# Created at 2023-09-27T20:38:53.885
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
# Created at 2023-09-27T20:38:53.885
WARNING: All illegal access operations will be denied in a future release
I tried many versions and this was the closest I got to the correct result, but it's still not quite right. Can I download Java 11 to Matlab R2018a for compatibility? Or is there another solution to this?
  1 comentario
Walter Roberson
Walter Roberson el 27 de Sept. de 2023
Support for Java 11 was not added until R2023a.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by