필터 지우기
필터 지우기

Can Java 11 be used with R2018a Matlab?

조회 수: 8 (최근 30일)
Rozerin
Rozerin 2023년 9월 27일
댓글: Walter Roberson 2023년 9월 27일
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
Walter Roberson
Walter Roberson 2023년 9월 27일
Support for Java 11 was not added until R2023a.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by